web/views/editforms.py
branchtls-sprint
changeset 1286 cb68c8af3858
parent 1285 d5ce82d65c2b
child 1291 22b4d300d18d
--- 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'))