comparison MoinMoin/macro/SystemAdmin.py @ 3123:5cb80bd604b4

refactored _() getText calls to match new api
author Radomir Dopieralski <moindev@sheep.art.pl>
date Wed, 27 Feb 2008 00:28:28 +0100
parents bb2e053067fb
children 09657fbd4aa2
comparison
equal deleted inserted replaced
3122:a1322262398a 3123:5cb80bd604b4
20 # do not show system admin to users not in superuser list 20 # do not show system admin to users not in superuser list
21 if not request.user.isSuperUser(): 21 if not request.user.isSuperUser():
22 return '' 22 return ''
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.form.get('sysadm', [None])[0]
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()]