예제 #1
0
    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()
예제 #2
0
    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()
예제 #3
0
 def setPrefix(self, prefix):
     Widget.setPrefix(self, prefix)
     self.assignee_chooser_widget.setPrefix(prefix)
     self.setUpNames()
예제 #4
0
 def setPrefix(self, prefix):
     Widget.setPrefix(self, prefix)
     self.assignee_chooser_widget.setPrefix(prefix)
     self.setUpNames()