validators.OneOf

Christopher Singley <[email protected]> Thu, 3 Jul 2008 15:20:54 -0500
Newsgroups gmane.comp.python.formencode
Message-ID <[email protected]>
Shouldn't validators.OneOf.not_empty be True by default?
The following result seems counterintuitive:

>>> import formencode
>>> val = formencode.validators.OneOf([1,2,3,4])
>>> val.to_python(None)
>>> 

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08