[3.10] remove a deprecation warning
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 21 Oct 2010 17:55:23 +0200
changeset 6576 481249ecdc4f
parent 6575 18588fff9c97
child 6577 0d9ea7f93065
[3.10] remove a deprecation warning
web/views/autoform.py
--- a/web/views/autoform.py	Thu Oct 21 17:54:51 2010 +0200
+++ b/web/views/autoform.py	Thu Oct 21 17:55:23 2010 +0200
@@ -267,9 +267,9 @@
             self._cw.data[countkey] += 1
         except KeyError:
             self._cw.data[countkey] = 1
-        self.w(self.form.render(
-            divid=divid, title=title, removejs=removejs, i18nctx=i18nctx,
-            counter=self._cw.data[countkey] , **kwargs))
+        self.form.render(w=self.w, divid=divid, title=title, removejs=removejs,
+                         i18nctx=i18nctx, counter=self._cw.data[countkey] ,
+                         **kwargs)
 
     def form_title(self, entity, i18nctx):
         return self._cw.pgettext(i18nctx, entity.__regid__)