Matt wrote:
> Hi, I'm trying to use form encode to validate a form checkbox, in the
> template:
> 
>     <td>Flagged:</td><td> ${ h.check_box('flagged', value=True,
> checked = c.flagged) }</td>
> 
> In my validator:
> 
>     flagged         = formencode.validators.StringBoolean()

Use:

   StringBoolean(if_missing=False)

-- 
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to