--- 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)