You should be able to explicitly pass the value from dtml to the python script. <dtml-var "somePythonScript(_., var1)"> or something like that... -- Andy McKay Agmweb Consulting http://www.agmweb.ca ----- Original Message ----- From: "Lea Smith" <richandleacv@yahoo.com> To: <zope@zope.org> Sent: Tuesday, September 03, 2002 6:47 AM Subject: [Zope] Accessing a dtml-let variable in a script (python)
Is it possible to access a variable in a python script which was created in a dtml-let tag.
Thought it would be simply a matter of referencing it using context.variable_name but this doesnt work. Also thought it may have been accessed thru the namespace setting in the script, but could not work it out.
Thanks for any ideas.
Richard
__________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )