diff MoinMoin/wikiutil.py @ 1784:2668d470091f

wikiutil.getSysPage renamed to getLocalizedPage
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 18 Feb 2007 23:50:31 +0100
parents ec3625137c0d
children 6dd2e29acffe
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Sun Feb 18 23:27:09 2007 +0100
+++ b/MoinMoin/wikiutil.py	Sun Feb 18 23:50:31 2007 +0100
@@ -711,9 +711,7 @@
     return filter(func, pagelist)
 
 
-# TODO: we may rename this to getLocalizedPage because it returns page
-# that have translations.
-def getSysPage(request, pagename):
+def getLocalizedPage(request, pagename): # was: getSysPage
     """ Get a system page according to user settings and available translations.
     
     We include some special treatment for the case that <pagename> is the
@@ -759,7 +757,7 @@
     @rtype: Page object
     @return localized page_front_page, if there is a translation
     """
-    return getSysPage(request, request.cfg.page_front_page)
+    return getLocalizedPage(request, request.cfg.page_front_page)
 
 
 def getHomePage(request, username=None):