Re: [Zope] Namespace for PythonScript

2005-06-01 Thread Chris Withers
Hong Yuan wrote: If a PythonScript is called from a Page Template, how can it access the variables defined using: 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

Re: [Zope] Namespace for PythonScript

2005-05-27 Thread Dieter Maurer
Hong Yuan wrote at 2005-5-27 00:07 +0800: >If a PythonScript is called from a Page Template, how can it access the >variables defined using: > >in the calling script? It may work to bind the "namespace" binding. Not sure, though... -- Dieter ___ Z

Re: [Zope] Namespace for PythonScript

2005-05-26 Thread J Cameron Cooper
Hong Yuan wrote: If a PythonScript is called from a Page Template, how can it access the variables defined using: in the calling script? Of course, one can pass the variables to the PythonScript explicitly as parameters, but is there any other way to let the PythonScript to easily access

[Zope] Namespace for PythonScript

2005-05-26 Thread Hong Yuan
Hello, If a PythonScript is called from a Page Template, how can it access the variables defined using: in the calling script? Of course, one can pass the variables to the PythonScript explicitly as parameters, but is there any other way to let the PythonScript to easily access the name s