Re: validators.All

Leandro Lucarella <[email protected]> Tue, 24 Jun 2008 13:46:24 -0300
Newsgroups gmane.comp.python.formencode
Message-ID <[email protected]>
Brian Bird, el 24 de junio a las 15:41 me escribiste:
>    I've just started using TurboGears which uses formencode a lot - and I
>    came across some unexpected behaviour with the validators.All compound
>    validator.
> 
>     
> 
>    I would have expected the following validators to be equivalent:
> 
>     
> 
>    >>> print validators.String(if_empty="EMPTY").to_python("")
> 
>    EMPTY
> 
>    >>> print
>    validators.All(validators.String(if_empty="EMPTY")).to_python("")
> 
>    None

See this thread (about 10 days ago):
http://permalink.gmane.org/gmane.comp.python.formencode/507

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
Forgive your enemies, but never forget their names


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php