If you'd like to implement the constants in a Python module, you can make "module-level" security declarations in a simple Product to make the constants TTW-script-accessible. see the ModuleSecurityInfo section of the Security chapter of the Zope Developer's Guide at http://www.zope.org/Documentation/ZDG/Security.stx for more info. ----- Original Message ----- From: "Ben Avery" <ben@thesite.org> To: <zope@zope.org> Sent: Monday, July 22, 2002 11:06 AM Subject: [Zope] python constants
Hi,
I'm writing a website / application server which will have a lot of python scripts, and I need to have some global variables defined in one place, which can be easily imported into all my scripts. If I were writing standalone python (or external methods) I would just use import to pull them in. But I'd like to access this in the TTW interface, not as anything external.
How could I do this?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ben Avery YouthNet UK
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )