web/form.py
branchtls-sprint
changeset 910 a86ab461b8fd
parent 907 192800415f59
child 913 5dfba71b1872
--- 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