[F delconf form] should give rset to select()
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 30 Jul 2009 18:52:26 +0200
changeset 2576 4ed80b85a22a
parent 2575 e033939d5664
child 2577 7c9888114085
[F delconf form] should give rset to select()
web/views/editforms.py
--- a/web/views/editforms.py	Thu Jul 30 18:51:44 2009 +0200
+++ b/web/views/editforms.py	Thu Jul 30 18:52:26 2009 +0200
@@ -83,7 +83,8 @@
           % _('this action is not reversible!'))
         # XXX above message should have style of a warning
         w(u'<h4>%s</h4>\n' % _('Do you want to delete the following element(s) ?'))
-        form = self.vreg.select('forms', 'composite', req, onsubmit=onsubmit)
+        form = self.vreg.select('forms', self.id, req, rset=self.rset,
+                                onsubmit=onsubmit)
         w(u'<ul>\n')
         for entity in self.rset.entities():
             # don't use outofcontext view or any other that may contain inline edition form