[Zope] dtml-let and Python Script

Peter Bengtsson mail@peterbe.com
Tue, 26 Feb 2002 09:55:04 -0800 (PST)


Using DTML (This works for me but not what I want):

--- DTML Method index_html ---
<dtml-let age="50">
  <dtml-var message>
</dtml-let>
------------------------------

--- DTML Method message ------
You are <dtml-var age> years old
------------------------------

Using Python Script (this is what I want but doesn't
work for me):

[same index_html method as above]

--- Python Script message ------
return "You are %s years old"%context.age
------------------------------



Basically, how do I within a Python Script use
variables that are set in a containing DTML-Let?


Peter

=====
peter_bengtsson_temporary@yahoo.co.uk is a temporary address that
I use to send until I get my email stuff together.
You can always continue to send to my real address which is 
mail@peterbe.com

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com