web/views/editforms.py
changeset 6453 7fdd780d87e4
parent 6225 a176e68b7d0d
child 7149 9dfd0dea692b
--- a/web/views/editforms.py	Tue Oct 12 12:12:05 2010 +0200
+++ b/web/views/editforms.py	Tue Oct 12 14:10:58 2010 +0200
@@ -90,7 +90,7 @@
             w(u'<li>%s</li>' % tags.a(entity.view('textoutofcontext'),
                                       href=entity.absolute_url()))
         w(u'</ul>\n')
-        w(form.render())
+        form.render(w=self.w)
 
 
 class EditionFormView(FormViewMixIn, EntityView):
@@ -112,7 +112,7 @@
         form = self._cw.vreg['forms'].select('edition', self._cw, entity=entity,
                                              submitmsg=self.submited_message())
         self.init_form(form, entity)
-        self.w(form.render())
+        form.render(w=self.w)
 
     def init_form(self, form, entity):
         """customize your form before rendering here"""
@@ -258,7 +258,7 @@
                                              rset=self.cw_rset,
                                              copy_nav_params=True,
                                              formvid='edition')
-        self.w(form.render())
+        form.render(w=self.w)
 
 
 # click and edit handling ('reledit') ##########################################