[Zope] returning values from python scripts
Andreas Jung
Andreas Jung <lists@andreas-jung.com>
Sun, 26 Jan 2003 21:07:36 +0100
<dtml-let result="test()">
<dtml-var "result[0]">
<dtml-var "result[1]">
</dtml-let>
-aj
--On Sonntag, 26. Januar 2003 15:01 -0500 Jeff Sacksteder
<jwsacksteder@ramprecision.com> wrote:
> 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]>
>
>
>
>
>
> _______________________________________________
> 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 )
---------------------------------------------------------------------
- Andreas Jung http://www.andreas-jung.com -
- EMail: andreas at andreas-jung.com -
- "Life is too short to (re)write parsers" -
---------------------------------------------------------------------