[forms] fix implementation of backward compat method form_render
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Tue, 19 Jan 2010 11:58:07 +0100
changeset 4260 832b578839cb
parent 4259 83b0bf9b0a51
child 4263 c541602a309d
[forms] fix implementation of backward compat method form_render previous implemtation used form_default_renderer() which is now replaced by default_renderer()
web/views/forms.py
--- a/web/views/forms.py	Tue Jan 19 10:43:48 2010 +0100
+++ b/web/views/forms.py	Tue Jan 19 11:58:07 2010 +0100
@@ -175,7 +175,7 @@
         self.build_context(values)
         renderer = values.pop('renderer', None)
         if renderer is None:
-            renderer = self.form_default_renderer()
+            renderer = self.default_renderer()
         return renderer.render(self, values)
 
 _AFF = uicfg.autoform_field