diff MoinMoin/script/migration/wikiutil160a.py @ 4829:9d510417add0

Groups2009: Instead of checking that some group is defined in a request.groups and then check that some member is in that group request.groups.get method is used.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Sat, 27 Jun 2009 13:11:35 +0200
parents 9bee7b3e9235
children 500f68d3e2fd
line wrap: on
line diff
--- a/MoinMoin/script/migration/wikiutil160a.py	Sat Jun 27 13:07:36 2009 +0200
+++ b/MoinMoin/script/migration/wikiutil160a.py	Sat Jun 27 13:11:35 2009 +0200
@@ -648,8 +648,7 @@
     @rtype: bool
     @return: true if page is a system page
     """
-    groups = request.groups
-    return ((u'SystemPagesGroup' in groups and pagename in groups[u'SystemPagesGroup']) or
+    return (pagename in request.groups.get(u'SystemPagesGroup', []) or
         isTemplatePage(request, pagename))