-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of jwsacksteder@ramprecision.com Sent: Tuesday, March 04, 2003 2:09 PM To: zope@zope.org Subject: [Zope] python variables rendered by dtml
This is going to sound convoluted, but trust me, it's this way on purpose.
I have a python script that gets a result back from an unparameterized zsql query like this-
foo = container.get_stuff_sql()
I then make some alterations to 'foo' in my script which I will leave out for clarity.
I then want to render 'foo' from a dtml method with a dtml-in clause. What is to best way to pass 'foo' into the dtml method?
(I'm having internet problems and I can't get to Zope labs right now, or I'd look it up myself.)
Have you tried: return foo It doesn't need to be named. Call your python script via the dtml-in, return foo, and all will be well. I do it all the time.