[Zope] Seeing a DTML-LET from a Python Script?

Lennart Regebro lennart@regebro.nu
Thu, 28 Feb 2002 14:28:11 +0100


From: "Jean Jordaan" <jean@upfrontsystems.co.za>
> 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 ..

I''m not sure, but maybe it's accessible as context.somevariable?
If not you could pass it to the pythonscript: <dtml-var
"pythonscript(somevariable)">
Thats a cleaner and better way to do it anyway.