ForEach and checkboxes?
Matej Barič <[email protected]> Mon, 25 Aug 2008 13:04:06 +0200
| Newsgroups | gmane.comp.python.formencode |
|---|---|
| Message-ID | <[email protected]> |
Hello, I use ToscaWidgets but I believe this is more of a FormEncode problem: In my form schema I use myfield = FormFieldRepeater(widget=Checkbox, repetitions=3). FormFieldRepeater uses the ForEach validator which in my case returns [True] instead of [False, False, True] if only the last checkbox is checked. I think the problem is already in schema.py where a method simply returns validator.if_missing value which may be ok for normal input fields but not checkboxes. Maybe ForEach.if_missing shouldn't simply a value of []. Is there any workaround for what I want? thanks, matej ------------------------------------------------------------------------- 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=/