diff MoinMoin/action/SyncPages.py @ 4425:e78462e0c7f1

pre-1.9: request.form has qs args and post data, 1.9: .form only post data, .args only qs args, .values both
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 18 Nov 2008 19:08:14 +0100
parents b1116a99d62b
children af155b846cea
line wrap: on
line diff
--- a/MoinMoin/action/SyncPages.py	Sun Nov 16 22:20:21 2008 +0100
+++ b/MoinMoin/action/SyncPages.py	Tue Nov 18 19:08:14 2008 +0100
@@ -122,8 +122,8 @@
     def fix_params(self, params):
         """ Does some fixup on the parameters. """
         # Load the password
-        if "password" in self.request.form:
-            params["password"] = self.request.form["password"]
+        if "password" in self.request.values:
+            params["password"] = self.request.values["password"]
 
         # merge the pageList case into the pageMatch case
         if params["pageList"] is not None:
@@ -178,7 +178,7 @@
         params = self.fix_params(self.parse_page())
 
         try:
-            if "cancel" in self.request.form:
+            if "cancel" in self.request.values:
                 raise ActionStatus(_("Operation was canceled."), "error")
 
             if params["direction"] == UP: