Testing a value returned from a Zope Python Script
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
<dtml-if expr="checkRowLength(fileObject_index, rowLength) == 0"> </dtml-if> --On Dienstag, 4. Februar 2003 08:11 -0800 Asad Habib <ahabib1357@yahoo.com> 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-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
--------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
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 )
participants (3)
-
Andreas Jung -
Asad Habib -
Dylan Reinhardt