437 self.render_form(entity) |
437 self.render_form(entity) |
438 |
438 |
439 def render_form(self, entity): |
439 def render_form(self, entity): |
440 """fetch and render the form""" |
440 """fetch and render the form""" |
441 self.form_title(entity) |
441 self.form_title(entity) |
442 form = self.vreg.select_object('forms', 'edition', self.req, self.rset, |
442 form = self.vreg.select_object('forms', 'edition', self.req, entity.rset, |
443 row=self.row, col=self.col, entity=entity, |
443 row=entity.row, col=entity.col, entity=entity, |
444 domid=self.id, submitmsg=self.submited_message()) |
444 domid=self.id, submitmsg=self.submited_message()) |
445 self.init_form(form, entity) |
445 self.init_form(form, entity) |
446 self.w(form.form_render(renderer=EntityFormRenderer(), formvid=u'edition')) |
446 self.w(form.form_render(renderer=EntityFormRenderer(), formvid=u'edition')) |
447 |
447 |
448 def init_form(self, form, entity): |
448 def init_form(self, form, entity): |