diff MoinMoin/macro/WantedPages.py @ 950:4eb66637ccd0

whitespace-only cleanup, small style changes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 17 Jul 2006 04:27:24 +0200
parents 0152984f76ee
children b65614f8a393
line wrap: on
line diff
--- a/MoinMoin/macro/WantedPages.py	Mon Jul 17 04:01:34 2006 +0200
+++ b/MoinMoin/macro/WantedPages.py	Mon Jul 17 04:27:24 2006 +0200
@@ -15,12 +15,12 @@
     _ = request.getText
 
     # prevent recursion
-    if request.mode_getpagelinks: 
-        return ''   
+    if request.mode_getpagelinks:
+        return ''
 
     # Get allpages switch from the form
     allpages = int(request.form.get('allpages', [0])[0]) != 0
-    
+
     # Control bar - filter the list of pages
     # TODO: we should make this a widget and use on all page listing pages
     controlbar = '''<div class="controlbar">
@@ -35,13 +35,13 @@
     pages = request.rootpage.getPageDict()
 
     # build a dict of wanted pages
-    wanted = {}       
+    wanted = {}
     for name, page in pages.items():
         # Skip system pages, because missing translations are not wanted pages,
         # unless you are a translator and clicked "Include system pages"
         if not allpages and wikiutil.isSystemPage(request, name):
                 continue
-        
+
         # Add links to pages which does not exists in pages dict
         links = page.getPageLinks(request)
         for link in links:
@@ -53,7 +53,7 @@
 
     # Check for the extreme case when there are no wanted pages
     if not wanted:
-        return u"%s<p>%s</p>" % (controlbar ,_("No wanted pages in this wiki."))
+        return u"%s<p>%s</p>" % (controlbar, _("No wanted pages in this wiki."))
 
     # Return a list of page links
     wantednames = wanted.keys()
@@ -74,7 +74,7 @@
         where.sort()
         if macro.formatter.page.page_name in where:
             where.remove(macro.formatter.page.page_name)
-        querystr='highlight=%s' % wikiutil.url_quote_plus(name)
+        querystr = 'highlight=%s' % wikiutil.url_quote_plus(name)
         wherelinks = [pages[pagename].link_to(request, querystr=querystr, rel='nofollow')
                       for pagename in where]
         result.append(": " + ', '.join(wherelinks))
@@ -82,3 +82,4 @@
     result.append(macro.formatter.number_list(0))
 
     return u'%s%s' % (controlbar, u''.join(result))
+