[Zope3-Users] default text for dropdown widget empty selection
    Dennis Schulz 
    d.schulz81 at gmx.net
       
    Tue Jan  2 16:16:44 EST 2007
    
    
  
You can override the setupWidgets() method of your formlib class and 
write something like this. (assuming that project is your dropdown field 
and your view is called MyAddingView)
def setUpWidgets(self, ignore_request=False):
        super(MyAddingView, 
self).setUpWidgets(ignore_request=ignore_request)
        self.widgets['project']._messageNoValue = "(no project)"
The thing that bothers me is that once you assign a value it is not 
possible to set it back to "no value".
Anyone knows how to fix this?
Dennis
Roy Mathew escribió:
> Hi Folks,
>
> Currently, the builtin dropdown widgets show the string '(no value)'
> as the empty default. Is it possible to show different text in its
> place?
>
>   
    
    
More information about the Zope3-users
mailing list