[Zope] Passing namespace from DTML to Python Script

Evan Simpson evan@4-am.com
Thu, 24 May 2001 10:52:00 -0400


From: "Chris Withers" <chrisw@nipltd.com>
> How should I be calling a python script from a python expression in DTML
and
> passing the namesapce in the process?

Ah, I see.  If you're binding the caller's namespace to "_", then you can
use "python_method(_=_)".  Normally the parameter list of a Script
determines its call signature; The single exception to the rule is this use
of the namespace binding as a keyword argument.

Cheers,

Evan @ digicool