Check the docs for DTML-LET. -aj --On Freitag, 11. April 2003 12:32 Uhr +0800 CY <cyhoong@pc.jaring.my> wrote:
I would like to know how-to extract results variable from a python script. The python script will extract and parse the string into y, m, d variables. How do I pass these variables into dtml method?
TQ
Python script ========= parameter = yearmonthdate
ymd=string.split(yearmonthday,"/") y=ymd[0] m=ymd[1] d=ymd[2] return y, m, d
DTML method ========== <dtml-var expr="splitDate('2003/03/11')">
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )