[web] remove widget.render backward compatibility stable
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 18 Nov 2009 12:32:57 +0100
branchstable
changeset 3873 4d95109582c7
parent 3872 8b1b9179f100
child 3874 7d0d4a6be046
[web] remove widget.render backward compatibility there are very few widgets outside CW that used old render API and they should have all been updated by now.
web/formfields.py
--- a/web/formfields.py	Wed Nov 18 10:05:41 2009 +0100
+++ b/web/formfields.py	Wed Nov 18 12:32:57 2009 +0100
@@ -178,12 +178,7 @@
         renderer
         """
         widget = self.get_widget(form)
-        try:
-            return widget.render(form, self, renderer)
-        except TypeError:
-            warn('[3.3] %s: widget.render now take the renderer as third argument, '
-                 'please update implementation' % widget, DeprecationWarning)
-            return widget.render(form, self)
+        return widget.render(form, self, renderer)
 
     def vocabulary(self, form):
         """return vocabulary for this field. This method will be called by