fix DateTimePicker implementation, it should now work tls-sprint
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Fri, 20 Feb 2009 17:38:55 +0100
branchtls-sprint
changeset 910 a86ab461b8fd
parent 909 4685a8c21d73
child 913 5dfba71b1872
fix DateTimePicker implementation, it should now work
web/form.py
--- a/web/form.py	Fri Feb 20 17:38:38 2009 +0100
+++ b/web/form.py	Fri Feb 20 17:38:55 2009 +0100
@@ -275,7 +275,7 @@
             values = (values,)
         attrs = dict(self.attrs)
         attrs['id'] = form.context[field]['id']
-        return name, values, dict(self.attrs)
+        return name, values, attrs
 
 class Input(FieldWidget):
     type = None
@@ -391,6 +391,7 @@
     
     def render(self, form, field):
         txtwidget = super(DateTimePicker, self).render(form, field)
+        self.add_localized_infos(form.req)
         cal_button = self._render_calendar_popup(form, field)
         return txtwidget + cal_button