add 'disabled' in html_attributes for YesNoRadioWidget
authorStephanie Marcu <stephanie.marcu@logilab.fr>
Mon, 30 Mar 2009 09:32:16 +0200
changeset 1190 15fc369bc3ca
parent 1189 8a075bc94563
child 1191 216141cf47a3
add 'disabled' in html_attributes for YesNoRadioWidget
web/widgets.py
--- a/web/widgets.py	Mon Mar 30 01:09:16 2009 +0200
+++ b/web/widgets.py	Mon Mar 30 09:32:16 2009 +0200
@@ -449,7 +449,7 @@
 
 
 class YesNoRadioWidget(CheckBoxWidget):
-    
+    html_attributes = Widget.html_attributes | set(('disabled',))
     def _edit_render(self, entity):
         value = self.current_value(entity)
         dvalue = self.current_display_value(entity)