Zope ZPT Import python module function

You can import python module functions from within a zope page template in just one line. Note that the module must be allowed access by zope.
tal:define="ceil python: modules['math'].ceil;"
<tal:x content="python: ceil(myVar / 3)" />
Snippet Viewed 9805 times.

Share your Zope ZPT code snippets:

  • Get some recognition & link back to your site.


Submit | Browse

Most Recent zope zpt snippets

Most Viewed