Re: Multiple checkboxes

Ian Bicking <[email protected]> Mon, 04 Aug 2008 18:17:00 -0500
Newsgroups gmane.comp.python.formencode
Message-ID <[email protected]>
Mike Orr wrote:
> I have several checkboxes all with the same name.  I want to get the
> values of the selected ones as a list, and also ensure that at least
> one box is checked.  Can I do this with validators?

You should be able to do validators.Set(not_empty=True)

-- 
Ian Bicking : [email protected] : http://blog.ianbicking.org

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/