# HG changeset patch # User Sylvain Thénault # Date 1287676523 -7200 # Node ID 481249ecdc4fb0c106b1d2bca3783ed73a0fea47 # Parent 18588fff9c9719b317e63b2e612e07f7b4ba752f [3.10] remove a deprecation warning diff -r 18588fff9c97 -r 481249ecdc4f 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__)