How to make sure at least one checkbox is checked?

"Matthew Wilson" <[email protected]> Sun, 7 Sep 2008 11:12:01 -0400
Newsgroups gmane.comp.python.formencode
Message-ID <[email protected]>
I've got a list of checkboxes, each with the same name and the value
attribute is an integer between 1 and 10.

Right now, I'm converting this to a list like this:

    from formencode import validators
    validators.ForEach(validators.Int(), convert_to_list=True)

I'd like to add another validator to make sure at least one checkbox is
checked, but I can't figure out how to do that.

Any suggestions?

Matt


-- 
Matthew Wilson
[email protected]
http://tplus1.com
216-470-6058

-------------------------------------------------------------------------
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=/