[Zope] conditional python expresion inside ZPT

Daniel de la Cuesta daniel.cuesta at iavante.es
Tue Dec 5 04:30:08 EST 2006


Hello,

How can I insert a conditional python expresion inside a ZPT.

Example:

if (my_expresion):
    toreturn = a
else:
    toreturn = b

return toretun

Thank you!






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20061205/fb408d44/attachment.htm


More information about the Zope mailing list