zptlint
Script that runs the pagetemplate parser and output errors
Installation
Because zptlint depends on zope.pagetemplate, it depends on a lot of other zope eggs.
To avoid polluting you system python, you can install zptlint in a virtualenv:
$ virtualenv --no-site-packages zptlint $ cd zptlint/ $ bin/easy_install zptlint
Then make a link to the right script:
$ ln -s MYPATH/zptlint/bin/zptlint
Configuration in .vimrc
"page templates configuration autocmd BufNewFile,BufRead *.pt,*.cpt,*.zpt setfiletype zpt autocmd FileType zpt set makeprg=zptlint\ % autocmd FileType zpt set errorformat=%+P***\ Error\ in:\ %f,%Z%*\\s\\,\ at\ line\ %l\\,\ column\ %c,%E%*\\s%m,%-Q augroup filetype au BufWritePost,FileWritePost *.pt make au BufWritePost,FileWritePost *.cpt make au BufWritePost,FileWritePost *.zpt make augroup END
Because zpt is defined as a new file type, you may want to copy syntax/html.vim to syntax/zpt.vim and ftplugin/html.vim to ftplugin/zpt.vim.
or usage from command-line in vim:
set makeprg=zptlint\ % set errorformat=%+P***\ Error\ in:\ %f,%Z%*\\s\\,\ at\ line\ %l\\,\ column\ %c,%E%*\\s%m,%-Q
Credits
code by Balazs Ree, Greenfinity
eggified by Godefroid Chapelle, BubbleNet
Changelog for zptlint
0.2.4 (2010-12-26)
Fix url in setup.py [gotcha]
0.2.3 (2009-12-18)
Documentation fixes (suggested by Davide Moro) [gotcha]
0.2.2 (2009-12-18)
Testing multiple files was broken (reported by Wouter Vanden Hove) [gotcha]
0.2.1 (2009-12-18)
Remove RestrictedPython from dependencies [gotcha]
0.2 (2009-12-18)
Add provider expression support [gotcha]
0.1 (2009-12-17)
Proper source release [gotcha]
0.1a (2008-06-16)
First release to PyPI [gotcha]
Initial code [ree]
Metadata
Release files for zptlint 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zptlint-0.2.4.tar.gz | 4.5 kB | Without provenance | Details for zptlint-0.2.4.tar.gz |
Release files / zptlint-0.2.4.tar.gz
| Download URL | zptlint-0.2.4.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd276b038b44c460018ef250029af260867832e9c8b719387261c78fe659ed06
|
|
BLAKE2b-256 checksum How to use checksums |
32b182a36cdddb42b0268ac67530f9573c416cc22411629481c15e33e947e215
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for zptlint 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.