Re: [FE-discuss] using min and max with float

Top Page
Author: Shannon -jj Behrens
Date:  
To: formencode-discuss
Subject: Re: [FE-discuss] using min and max with float
Uh, why does it seem like min doesn't work for the Int validator?

In [1]: from formencode import validators

In [2]: validators.Int(min=0).to_python('-1')

Out[2]: -1

In [3]: validators.Int(min=0).from_python('-1')

Out[3]: -1

There's no test for min and max in the doctest, but I can see the
support for it in the code.

Confused,
-jj

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
FormEncode-discuss mailing list
FormEncode-discuss@???
https://lists.sourceforge.net/lists/listinfo/formencode-discuss