[Mpuls-commits] r2242 - in wasko/branches/2.0: . mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Mar 29 17:49:08 CEST 2010


Author: bh
Date: 2010-03-29 17:49:06 +0200 (Mon, 29 Mar 2010)
New Revision: 2242

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/lib/navigation.py
Log:
* mpulsweb/lib/navigation.py: Fix formatting.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-03-29 15:45:33 UTC (rev 2241)
+++ wasko/branches/2.0/ChangeLog	2010-03-29 15:49:06 UTC (rev 2242)
@@ -1,5 +1,9 @@
 2010-03-29  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/lib/navigation.py: Fix formatting.
+
+2010-03-29  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/lib/search.py: Remove unused imports.
 
 2010-03-29  Bernhard Herzog  <bh at intevation.de>

Modified: wasko/branches/2.0/mpulsweb/lib/navigation.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/navigation.py	2010-03-29 15:45:33 UTC (rev 2241)
+++ wasko/branches/2.0/mpulsweb/lib/navigation.py	2010-03-29 15:49:06 UTC (rev 2242)
@@ -87,18 +87,20 @@
     except:
         log.error('Can not find name for page %s' % page_id)
 
+
 class FileCache(object):
 
     def __init__(self, base=None):
-        self.base  = base
+        self.base = base
         self.cache = {}
 
-    def get_image(self, name, attributes = ""):
+    def get_image(self, name, attributes=""):
         return '<img src="%s" %s>' % (name, attributes)
 
     def get_base(self):
         return self.base
 
+
 class TreeItem:
 
     def __init__(self, name, description, children=None, parent=None):
@@ -185,8 +187,9 @@
                                       u' title="%s"'
                                       % (_('entry'), _('Open page'))))
         icon.append('</a>')
-        entry.append(u'<a href="%s" %s>%s</a>' % (
-                select_link, CHECK_MODIFICATION, escape(self.description)))
+        entry.append(u'<a href="%s" %s>%s</a>'
+                     % (select_link, CHECK_MODIFICATION,
+                        escape(self.description)))
 
         selected = (str(self.key) == str(session.get('navigation.selectedpage'))
                     and "selected" or "")
@@ -269,6 +272,7 @@
         nc = nc.parent
     return ""
 
+
 class NavigationTreeBuilder(object):
 
     def __init__(self, root, openfolders):
@@ -315,10 +319,11 @@
                 n.set_open(True)
             return n
 
-        ti = TreeItem("xxx", "Unknown Item", parent = parent)
+        ti = TreeItem("xxx", "Unknown Item", parent=parent)
         ti.key = nc.getIdentifier()
         return ti
 
+
 class NavigationTree:
 
     def __init__(self, instance, openfolders=None):



More information about the Mpuls-commits mailing list