[Zope-DB] Re: RE: RE: Form evaluation in ZSQL-Method

Andreas Tille tillea at rki.de
Fri Sep 19 04:52:37 EDT 2003


On Thu, 18 Sep 2003, Dieter Maurer wrote:

> A string "0" can compare in a surprising way with an integer "0".
>
> Note that all values passed via HTTP are strings by default.
> You have to use "converters" (see the "ZPublisher" section in
>
>   <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
>
> ) to convert them to something else.
Thanks.  Just for the record in the archive:

     _.int(iditem) > 0

does the trick.

Kindr regards

        Andreas.



More information about the Zope-DB mailing list