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