web/views/editforms.py
changeset 4167 73e649a7797d
parent 4164 119a374c5eb4
child 4236 9260403bfe0b
--- a/web/views/editforms.py	Mon Dec 21 20:24:47 2009 +0100
+++ b/web/views/editforms.py	Mon Dec 21 20:25:58 2009 +0100
@@ -320,7 +320,7 @@
                                              entity=entity,
                                              submitmsg=self.submited_message())
         self.init_form(form, entity)
-        self.w(form.render(rendervalues=dict(formvid=u'edition')))
+        self.w(form.render(formvid=u'edition'))
 
     def init_form(self, form, entity):
         """customize your form before rendering here"""
@@ -523,9 +523,8 @@
         except KeyError:
             self._cw.data[countkey] = 1
         self.w(self.form.render(
-            rendervalues=dict(divid=divid, title=title, removejs=removejs,
-                              i18nctx=i18nctx, counter=self._cw.data[countkey]),
-            formvalues=kwargs))
+            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, 'This %s' % entity.e_schema)