[ZPT] Access variable through ZPT

Dieter Maurer dieter at handshake.de
Sun Dec 19 16:58:01 EST 2004

Michael Rowley wrote at 2004-12-18 22:33 -0500:
>How can I access a variable defined in config.py of my product from 
>Page Templates?

When you have provided the necessary security declarations
such that your "config.py" can be imported in restricted
code (read the "README" in the PythonScripts product or
the Zope Developer Guide), then you can access it via
the "modules" predefined variable:
e.g. "modules/Products.MyProduct.config/myVariable".


More information about the ZPT mailing list