changeset 3181:8d465b643237

DeletePage action: fix AttributeError
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 03 Mar 2008 02:37:39 +0100
parents 6ad1f133b66d
children 6e28cd3623a1 952f8f1268c5
files MoinMoin/action/DeletePage.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/DeletePage.py	Mon Mar 03 02:34:56 2008 +0100
+++ b/MoinMoin/action/DeletePage.py	Mon Mar 03 02:37:39 2008 +0100
@@ -25,6 +25,7 @@
         self.form_trigger = 'delete'
         self.form_trigger_label = _('Delete')
         filterfn = re.compile(ur"^%s/.*$" % re.escape(pagename), re.U).match
+        subpagenames = request.rootpage.getPageList(user='', exists=1, filter=filterfn)
         self.subpages = [pagename for pagename in subpagenames if self.request.user.may.delete(pagename)]
 
     def is_allowed(self):