[Zope] Passing namespace from DTML to Python Script

Chris Withers chrisw@nipltd.com
Thu, 24 May 2001 15:53:17 +0100


Evan Simpson wrote:
> 
> 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(_=_)". 


Ahh, thankyou, thankyou :-))

Hmmm, this should be documented somewhere in big flashing lights for stupid
people like me...

...but, is it just me, or is the above not very intuitive?
python_method(_) would be more so, but I see the problems.

Hmmm, I suppose this is DTML though ;-)

cheers,

Chris