web/form.py
branchtls-sprint
changeset 913 5dfba71b1872
parent 911 467fb77c6a33
parent 910 a86ab461b8fd
child 944 e9da555f19c5
--- a/web/form.py	Fri Feb 20 17:39:56 2009 +0100
+++ b/web/form.py	Fri Feb 20 17:40:07 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
@@ -401,6 +401,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