merge stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 18 May 2009 19:50:54 +0200
branchstable
changeset 1853 b1e3d8355d65
parent 1850 75661f0a691b (current diff)
parent 1852 f04da596da6c (diff)
child 1854 9302d0e66076
merge
--- a/web/views/basetemplates.py	Mon May 18 19:50:23 2009 +0200
+++ b/web/views/basetemplates.py	Mon May 18 19:50:54 2009 +0200
@@ -7,7 +7,6 @@
 """
 __docformat__ = "restructuredtext en"
 
-
 from logilab.mtconverter import html_escape
 
 from cubicweb.vregistry import objectify_selector
--- a/web/views/editforms.py	Mon May 18 19:50:23 2009 +0200
+++ b/web/views/editforms.py	Mon May 18 19:50:54 2009 +0200
@@ -52,7 +52,7 @@
     # else we will only delete the displayed page
     need_navigation = False
 
-    def call(self):
+    def call(self, onsubmit=None):
         """ask for confirmation before real deletion"""
         req, w = self.req, self.w
         _ = req._
@@ -61,7 +61,7 @@
         # 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 = CompositeForm(req, domid='deleteconf', copy_nav_params=True,
-                             action=self.build_url('edit'), onsubmit=None,
+                             action=self.build_url('edit'), onsubmit=onsubmit,
                              form_buttons=[Button(stdmsgs.YES, cwaction='delete'),
                                            Button(stdmsgs.NO, cwaction='cancel')])
         done = set()