[widget] allow kwargs passed to Select widget stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 23 Mar 2010 18:16:35 +0100
branchstable
changeset 4975 35b0dd80dc06
parent 4974 025a491bad0c
child 4976 34fd21f65702
[widget] allow kwargs passed to Select widget
web/formwidgets.py
--- a/web/formwidgets.py	Tue Mar 23 17:08:50 2010 +0100
+++ b/web/formwidgets.py	Tue Mar 23 18:16:35 2010 +0100
@@ -263,8 +263,8 @@
     """<select>, for field having a specific vocabulary"""
     vocabulary_widget = True
 
-    def __init__(self, attrs=None, multiple=False):
-        super(Select, self).__init__(attrs)
+    def __init__(self, attrs=None, multiple=False, **kwargs):
+        super(Select, self).__init__(attrs, **kwargs)
         self._multiple = multiple
 
     def render(self, form, field, renderer):