[Zope] Testing arguments in zsql methods

Pablo Ziliani pablo at decode.com.ar
Fri Sep 9 16:00:41 EDT 2005


Hi everyone,
I have what I think is a banal question here... Is there any way I can 
test inside a zsql method if an argument has been passed? <dtml-if foo> 
won't work because 0 (zero) is an expected value.
Have tried <dtml-if "_.hasattr(_, 'foo')"> but it seems to be always 
false (where's that namespace?)

TIA,
Pablo



More information about the Zope mailing list