28 Feb
2002
28 Feb
'02
1:25 p.m.
On Thu, 28 Feb 2002, Jean Jordaan wrote:
Hi all
Quick question: if I do this:
<dtml-let somevariable="'whatever'"> <dtml-var pythonScript> </dtml-let>
how do I get at the value of somevariable in pythonScript? I'd assume by binding the namespace _ and doing _['something'] but that raises a key-error ..
DTMLDocument in: <dtml-let myvar="'hi'"> <dtml-var out> </dtml-let> PythonScript out: return _['myvar'] Bind _ to the namespace for the script. Works fine for me, Zope 2.5.0. Not sure why it wouldn't for you. -- Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton Independent Knowledge Management Consultant