don't use navigation in deleteconf form
authorsylvain.thenault@logilab.fr
Wed, 11 Feb 2009 15:20:49 +0100
changeset 582 0260b3b71d71
parent 581 09f87f2c535e
child 583 d0c6f5efb837
child 602 1454282a8b45
don't use navigation in deleteconf form
web/views/baseforms.py
--- a/web/views/baseforms.py	Wed Feb 11 15:20:32 2009 +0100
+++ b/web/views/baseforms.py	Wed Feb 11 15:20:49 2009 +0100
@@ -2,7 +2,7 @@
 or a list of entities of the same type
 
 :organization: Logilab
-:copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 """
 __docformat__ = "restructuredtext en"
@@ -33,6 +33,9 @@
     title = _('delete')
     domid = 'deleteconf'
     onsubmit = None
+    # don't use navigation, all entities asked to be deleted should be displayed
+    # else we will only delete the displayed page
+    need_navigation = False
     
     def call(self):
         """ask for confirmation before real deletion"""