web/views/editforms.py
changeset 2048 5e4d1433b90b
parent 2046 8fce2d25853c
child 2049 b9baedffeb8b
--- a/web/views/editforms.py	Fri Jun 05 09:13:49 2009 +0200
+++ b/web/views/editforms.py	Fri Jun 05 10:03:16 2009 +0200
@@ -71,7 +71,7 @@
                 continue
             done.add(entity.eid)
             subform = self.vreg.select_object('forms', 'base', req, entity=entity,
-                                              set_error_url=False, set_dom_id=False)
+                                              mainform=False)
             form.form_add_subform(subform)
             # don't use outofcontext view or any other that may contain inline edition form
             w(u'<li>%s</li>' % tags.a(entity.view('textoutofcontext'),
@@ -307,7 +307,7 @@
         for row in xrange(len(self.rset)):
             form = self.vreg.select_object('forms', 'edition', self.req, self.rset,
                                            row=row, attrcategories=('primary',),
-                                           set_error_url=False, set_dom_id=False)
+                                           mainform=False)
             # XXX rely on the EntityCompositeFormRenderer to put the eid input
             form.remove_field(form.field_by_name('eid'))
             self.form_add_subform(form)
@@ -356,7 +356,7 @@
         """fetch and render the form"""
         form = self.vreg.select_object('forms', 'edition', self.req, None,
                                        entity=entity, form_renderer_id='inline',
-                                       set_error_url=False, set_dom_id=False,
+                                       mainform=False,
                                        copy_nav_params=False)
         self.add_hiddens(form, entity, peid, rtype, role)
         divid = '%s-%s-%s' % (peid, rtype, entity.eid)