Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install zptlint

How to install zptlint

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install zptlint
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2.4 Available View build log
0.2.3 Available View build log
Windows (64-bit)
0.2.4 Available View build log
0.2.3 Available View build log
Mac OS X (10.5+)
0.2.4 Available View build log
0.2.3 Available View build log
Linux (32-bit)
0.2.4 Available View build log
0.2.3 Available View build log
Linux (64-bit)
0.2.4 Available View build log
0.2.3 Available View build log
 
Author
License
GPL
Imports
Lastest release
version 0.2.4 on Jan 8th, 2011

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]

Subscribe to package updates

Last updated Jan 8th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.