[Zope] returning values from python scripts

Jeff Sacksteder jwsacksteder@ramprecision.com
Sun, 26 Jan 2003 15:01:17 -0500


I'm not sure how to get at the return values of python scripts from dtml.
Assume I have the following python script called 'test':

foo = "john doe"
bar = 42
return foo,bar

How can I get at the returned value?

<dtml-var test> returns both elements. I was hoping to be able to do
something like <dtml-var test.foo> or <dtml-var test[0]>