[Zope] Parametera and Formulator
Chris Withers
chrisw@nipltd.com
Tue, 17 Sep 2002 14:27:37 +0100
Dag Nygren wrote:
>
> I have two questions today, both concerning the not so
> clearly explained parameter passing of Zope:
> 1. Did I understand it right when I assume that all the
> variables (form and dtml-let stuff) are available in all the
> objects that are below (in the object hierarchy)
> the one where they were defined.
For the most part, yes.
> 2. How do I pass one of these Global (?) variables to a python
> procedure from a DTML page ?
You mean a Script (Python)?
Go to the Bindings tab and bind 'namespace' to _.
Then you can do:
myvar = _['myvar']
...and so on.
cheers,
Chris