web/views/editforms.py
branchtls-sprint
changeset 1324 a82f83188695
parent 1322 92a2375b1de6
child 1366 fd5bd1a63c3f
--- a/web/views/editforms.py	Thu Apr 09 16:16:58 2009 +0200
+++ b/web/views/editforms.py	Thu Apr 09 16:17:16 2009 +0200
@@ -440,6 +440,7 @@
     __select__ = one_line_rset() & non_final_entity() & yes()
 
     title = _('edition')
+    renderer = EntityFormRenderer()
     
     def cell_call(self, row, col, **kwargs):
         entity = self.complete_entity(row, col)
@@ -452,7 +453,7 @@
                                        row=entity.row, col=entity.col, entity=entity,
                                        submitmsg=self.submited_message())
         self.init_form(form, entity)
-        self.w(form.form_render(renderer=EntityFormRenderer(), formvid=u'edition'))
+        self.w(form.form_render(renderer=self.renderer, formvid=u'edition'))
 
     def init_form(self, form, entity):
         """customize your form before rendering here"""
@@ -559,7 +560,7 @@
             form = self.vreg.select_object('forms', 'edition', self.req, self.rset,
                                            row=row, attrcategories=('primary',),
                                            set_error_url=False)
-            # XXX rely on the MultipleEntityFormRenderer to put the eid input
+            # XXX rely on the EntityCompositeFormRenderer to put the eid input
             form.remove_field(form.field_by_name('eid'))
             self.form_add_subform(form)