changeset 5205:bc5d4e7072ea

action CopyPage, RenamePage, DeletePage: subpages_checked needs request.args.getfor reading this url param
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 10 Oct 2009 15:42:17 +0200
parents 03086aa93c85
children 64854adb52fc
files MoinMoin/action/CopyPage.py MoinMoin/action/DeletePage.py MoinMoin/action/RenamePage.py
diffstat 3 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/CopyPage.py	Sat Oct 10 15:17:33 2009 +0200
+++ b/MoinMoin/action/CopyPage.py	Sat Oct 10 15:42:17 2009 +0200
@@ -91,7 +91,7 @@
             d = {
                 'textcha': TextCha(self.request).render(),
                 'subpage': subpages,
-                'subpages_checked': ('', 'checked')[self.request.form.get('subpages_checked', '0') == '1'],
+                'subpages_checked': ('', 'checked')[self.request.args.get('subpages_checked', '0') == '1'],
                 'subpage_label': _('Copy all /subpages too?'),
                 'pagename': wikiutil.escape(self.pagename, True),
                 'newname_label': _("New name"),
--- a/MoinMoin/action/DeletePage.py	Sat Oct 10 15:17:33 2009 +0200
+++ b/MoinMoin/action/DeletePage.py	Sat Oct 10 15:42:17 2009 +0200
@@ -74,7 +74,7 @@
 
             d = {
                 'subpage': subpages,
-                'subpages_checked': ('', 'checked')[self.request.form.get('subpages_checked', '0') == '1'],
+                'subpages_checked': ('', 'checked')[self.request.args.get('subpages_checked', '0') == '1'],
                 'subpage_label': _('Delete all /subpages too?'),
                 'comment_label': _("Optional reason for the deletion"),
                 'buttons_html': buttons_html,
--- a/MoinMoin/action/RenamePage.py	Sat Oct 10 15:17:33 2009 +0200
+++ b/MoinMoin/action/RenamePage.py	Sat Oct 10 15:42:17 2009 +0200
@@ -80,10 +80,9 @@
         _ = self._
         if self.subpages:
             subpages = ' '.join(self.subpages)
-
             d = {
                 'subpage': subpages,
-                'subpages_checked': ('', 'checked')[self.request.values.get('subpages_checked', '0') == '1'],
+                'subpages_checked': ('', 'checked')[self.request.args.get('subpages_checked', '0') == '1'],
                 'subpage_label': _('Rename all /subpages too?'),
                 'pagename': wikiutil.escape(self.pagename, True),
                 'newname_label': _("New name"),