[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/form/browser/boolwidgets.py
don't be silly, simplify!
Fred L. Drake, Jr.
fdrake at gmail.com
Thu Aug 17 13:57:06 EDT 2006
Log message for revision 69616:
don't be silly, simplify!
Changed:
U Zope3/trunk/src/zope/app/form/browser/boolwidgets.py
-=-
Modified: Zope3/trunk/src/zope/app/form/browser/boolwidgets.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/boolwidgets.py 2006-08-17 16:52:11 UTC (rev 69615)
+++ Zope3/trunk/src/zope/app/form/browser/boolwidgets.py 2006-08-17 17:57:06 UTC (rev 69616)
@@ -99,8 +99,7 @@
def BooleanRadioWidget(field, request, true=_('on'), false=_('off')):
vocabulary = SimpleVocabulary.fromItems( ((true, True), (false, False)) )
widget = RadioWidget(field, vocabulary, request)
- if field.required:
- widget.required = False
+ widget.required = False
return widget
@@ -108,16 +107,14 @@
vocabulary = SimpleVocabulary.fromItems( ((true, True), (false, False)) )
widget = SelectWidget(field, vocabulary, request)
widget.size = 2
- if field.required:
- widget.required = False
+ widget.required = False
return widget
def BooleanDropdownWidget(field, request, true=_('on'), false=_('off')):
vocabulary = SimpleVocabulary.fromItems( ((true, True), (false, False)) )
widget = DropdownWidget(field, vocabulary, request)
- if field.required:
- widget.required = False
+ widget.required = False
return widget
More information about the Zope3-Checkins
mailing list