Hong Yuan wrote:
If a PythonScript is called from a Page Template, how can it access the variables defined using:
  <tal:define="global ..." />
in the calling script?

no need for the 'global'

Go to the Bindings tab of your python script, make sure _ is in the box for "namespace".

then, in the python script, you can do:




Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to