web/views/autoform.py
changeset 6576 481249ecdc4f
parent 6427 c8a5ac2d1eaa
child 6577 0d9ea7f93065
--- 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__)