comparison 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
comparison
equal deleted inserted replaced
4423:135d4a7dc09d 4424:5ad5753ae311
23 23
24 _MENU = { 24 _MENU = {
25 'attachments': (_("File attachment browser"), do_admin_browser), 25 'attachments': (_("File attachment browser"), do_admin_browser),
26 'users': (_("User account browser"), do_user_browser), 26 'users': (_("User account browser"), do_user_browser),
27 } 27 }
28 choice = request.form.get('sysadm', [None])[0] 28 choice = request.values.get('sysadm')
29 29
30 # create menu 30 # create menu
31 menuitems = [(label, fnid) for fnid, (label, handler) in _MENU.items()] 31 menuitems = [(label, fnid) for fnid, (label, handler) in _MENU.items()]
32 menuitems.sort() 32 menuitems.sort()
33 result = [] 33 result = []