comparison MoinMoin/script/migration/wikiutil160a.py @ 4826:9bee7b3e9235

Groups2009: pep8 fixes and minor code refinements.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Sat, 27 Jun 2009 11:21:04 +0200
parents 74216148209d
children 9d510417add0
comparison
equal deleted inserted replaced
4825:8db07c73e972 4826:9bee7b3e9235
647 @param pagename: the page name 647 @param pagename: the page name
648 @rtype: bool 648 @rtype: bool
649 @return: true if page is a system page 649 @return: true if page is a system page
650 """ 650 """
651 groups = request.groups 651 groups = request.groups
652 return (u'SystemPagesGroup' in groups and pagename in groups[u'SystemPagesGroup']) or \ 652 return ((u'SystemPagesGroup' in groups and pagename in groups[u'SystemPagesGroup']) or
653 isTemplatePage(request, pagename) 653 isTemplatePage(request, pagename))
654 654
655 655
656 def isTemplatePage(request, pagename): 656 def isTemplatePage(request, pagename):
657 """ Is this a template page? 657 """ Is this a template page?
658 658