[Zope] Default values in ZSQL methods

Stefan H. Holek stefan@epy.co.at
Tue, 13 Mar 2001 18:04:09 +0100


>
>   staffid:int=0
>
>   <dtml-if "staffid > 0">
>     where staffid=<dtml-sqlvar staffid type=int>
>   </dtml-if>
>

This works for me:

<dtml-if "_.int(staffid) > 0">
  where staffid=<dtml-sqlvar staffid type=int>
</dtml-if>

I do not know why the cast is necessary, though ;)

Regards,
Stefan

--
Things work better when plugged in.