[widgets] fix super calls, bug introduced in 5367:4176a50c81c9 stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 23 Apr 2010 12:40:26 +0200
branchstable
changeset 5383 fbe7416104c6
parent 5377 84d14ddfae13
child 5384 b619531ddbd2
[widgets] fix super calls, bug introduced in 5367:4176a50c81c9
web/formwidgets.py
--- a/web/formwidgets.py	Thu Apr 22 19:48:04 2010 +0000
+++ b/web/formwidgets.py	Fri Apr 23 12:40:26 2010 +0200
@@ -522,7 +522,7 @@
         req.html_headers.define_var('DAYNAMES', daynames)
 
     def _render(self, form, field, renderer):
-        txtwidget = super(DateTimePicker, self).render(form, field, renderer)
+        txtwidget = super(DateTimePicker, self)._render(form, field, renderer)
         self.add_localized_infos(form._cw)
         cal_button = self._render_calendar_popup(form, field)
         return txtwidget + cal_button
@@ -632,8 +632,8 @@
         timepicker = JQueryTimePicker(timestr=timestr, timesteps=self.timesteps,
                                       suffix='time')
         return u'<div id="%s">%s%s</div>' % (field.dom_id(form),
-                                            datepicker.render(form, field),
-                                            timepicker.render(form, field))
+                                            datepicker.render(form, field, renderer),
+                                            timepicker.render(form, field, renderer))
 
     def process_field_data(self, form, field):
         req = form._cw
@@ -775,7 +775,7 @@
         return attrs
 
     def _render(self, form, field, renderer):
-        return super(AddComboBoxWidget, self).render(form, field, renderer) + u'''
+        return super(AddComboBoxWidget, self)._render(form, field, renderer) + u'''
 <div id="newvalue">
   <input type="text" id="newopt" />
   <a href="javascript:noop()" id="add_newopt">&#160;</a></div>