AW: [Zope3-Users] z3c.form, checkboxes for Bool fields

Roger Ineichen dev at projekt01.ch
Sat Sep 1 18:26:22 EDT 2007


Hi Andreas
 
> An: zope3-users at zope.org
> Betreff: [Zope3-Users] z3c.form, checkboxes for Bool fields
> 
> In my interface I have Bool fields, say e. g. for invitation
> 
>   class IAdr(Interface)
>     ...
>     invitation = Bool(
> 	    title=u'Invitation',
> 	    description=u'Invitation?',
> 	    required=False
> 	    )
>      ...

[...]

> However I get *two* checkboxes now
> 
>   [ ] yes [ ] no

This is correct, because you need to select None as value 
like defined in the schema (required=False). De-select
both checkboxes should set None as value. But I'm not
sure if we implemented this.

Regards
Roger Ineichen
_____________________________
END OF MESSAGE



More information about the Zope3-users mailing list