diff MoinMoin/macro/SystemAdmin.py @ 4424:5ad5753ae311

pre-1.9: request.form has qs args and post data, 1.9: .form only post data, .args only qs args, .values both
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 16 Nov 2008 22:20:21 +0100
parents 09657fbd4aa2
children
line wrap: on
line diff
--- a/MoinMoin/macro/SystemAdmin.py	Sun Nov 16 16:50:56 2008 +0100
+++ b/MoinMoin/macro/SystemAdmin.py	Sun Nov 16 22:20:21 2008 +0100
@@ -25,7 +25,7 @@
         'attachments': (_("File attachment browser"), do_admin_browser),
         'users': (_("User account browser"), do_user_browser),
     }
-    choice = request.form.get('sysadm', [None])[0]
+    choice = request.values.get('sysadm')
 
     # create menu
     menuitems = [(label, fnid) for fnid, (label, handler) in _MENU.items()]