def __init__(self, context, vocabulary, request): Widget.__init__(self, context, request) # This is a radio button widget so, since at least one radio # button will always be selected (and thus there will always # be input provided), we set required to False, to avoid # unnecessary 'required' UI connotations. # # See zope.formlib.interfaces.IInputWidget. self.required = False self.assignee_chooser_widget = PersonPickerWidget( context, context.vocabulary, request) self.setUpNames()
def setPrefix(self, prefix): Widget.setPrefix(self, prefix) self.assignee_chooser_widget.setPrefix(prefix) self.setUpNames()