comparison MoinMoin/macro/SystemAdmin.py @ 1868:64507f46beb2

reduce usage of has_key()
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 10 Mar 2007 22:01:07 +0100
parents 6dd2e29acffe
children bb2e053067fb
comparison
equal deleted inserted replaced
1867:8166b37db555 1868:64507f46beb2
42 result.append(f.page.link_to(request, label, querystr={'sysadm': fnid})) 42 result.append(f.page.link_to(request, label, querystr={'sysadm': fnid}))
43 result.append(f.linebreak()) 43 result.append(f.linebreak())
44 result.append(f.linebreak()) 44 result.append(f.linebreak())
45 45
46 # add chosen content 46 # add chosen content
47 if _MENU.has_key(choice): 47 if choice in _MENU:
48 result.append(f.rawHTML(_MENU[choice][1](request))) 48 result.append(f.rawHTML(_MENU[choice][1](request)))
49 49
50 return ''.join(result) 50 return ''.join(result)
51 51