tal:define="ceil python: modules['math'].ceil;" ... <tal:x content="python: ceil(myVar / 3)" />
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.
Snippet Viewed 9905 times.
Share your Zope ZPT code snippets:
- Get some recognition & a link back to your site.
- Create your own code library.
- Help your fellow developers, as they have helped you.