[Zope] Testing a value returned from a Zope Python Script

Dylan Reinhardt zope@dylanreinhardt.com
Tue, 04 Feb 2003 10:06:21 -0800


Do this:

<dtml-if "checkRowLength(fileObject_index, rowLength) == 0">

HTH,

Dylan


At 08:11 AM 2/4/2003, Asad Habib wrote:
>Hello. I am trying to test a value returned from a
>Python script using the following syntax:
>
><dtml-if expr="<dtml-call
>expr="checkRowLength(fileObject_index, rowLength)"> ==
>0">
>     </dtml-if>
>
>checkRowLength is the name of the script. Apparently
>Zope flags me with an error saying that this is an
>invalid attribute tag for a dtml-if. Is there any
>other way of achieving this? Any help would be
>appreciated.
>
>-Asad
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>http://mailplus.yahoo.com
>
>_______________________________________________
>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 )