1 Jun
2005
1 Jun
'05
7:43 p.m.
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: _.getitem('...') cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk