use entity's rset and row/col info tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 08 Apr 2009 11:33:34 +0200
branchtls-sprint
changeset 1286 cb68c8af3858
parent 1285 d5ce82d65c2b
child 1287 984e249764d1
use entity's rset and row/col info
web/views/editforms.py
--- a/web/views/editforms.py	Wed Apr 08 11:33:12 2009 +0200
+++ b/web/views/editforms.py	Wed Apr 08 11:33:34 2009 +0200
@@ -439,8 +439,8 @@
     def render_form(self, entity):
         """fetch and render the form"""
         self.form_title(entity)
-        form = self.vreg.select_object('forms', 'edition', self.req, self.rset,
-                                       row=self.row, col=self.col, entity=entity,
+        form = self.vreg.select_object('forms', 'edition', self.req, entity.rset,
+                                       row=entity.row, col=entity.col, entity=entity,
                                        domid=self.id, submitmsg=self.submited_message())
         self.init_form(form, entity)
         self.w(form.form_render(renderer=EntityFormRenderer(), formvid=u'edition'))