Hmm, apparently, the code for min and max isn't in the latest egg, but
it is in the online docs.
-jj
On Thu, May 1, 2008 at 12:08 AM, Shannon -jj Behrens <jjinux@???> wrote:
> 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
>
--
I, for one, welcome our new Facebook overlords!
http://jjinux.blogspot.com/
-------------------------------------------------------------------------
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