[Zope3-Users] Re: Choice Field with MultiCheckBoxWidget?
    Christian Klinger 
    cklinger at novareto.de
       
    Tue Oct  2 09:54:29 EDT 2007
    
    
  
Christian Klinger schrieb:
> Hi,
> 
> i try to have a form with an ChoiceField rendered as a MultiCheckBoxWidget.
> 
> interfaces.py
> ---------------------------------------------------------
>     berechtigung = schema.Choice(title=_(u'Berechtigung'),
>                                    description=_(u'Berechtiung'),
>                                    missing_value=None,
> 
> #value_type=schema.Choice(vocabulary="VocabularyBerechtigungen"))
>                                    vocabulary="VocabularyBerechtigungen")
> 
> 
> browser.py:
> ----------------------------------------------------------
>     form_fields['berechtigung'].custom_widget = MultiCheckBox??
> 
> 
> Where can i find a MulitCheckBoxWidget?
> Is this the right way to do this?
> 
> Christian
I got it i have to use a schema.List(...)
Thx Christian
    
    
More information about the Zope3-users
mailing list