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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Mar 3 19:06:37 CET 2010


Author: bh
Date: 2010-03-03 19:06:34 +0100 (Wed, 03 Mar 2010)
New Revision: 1886

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/lib/navigation.py
Log:
* mpulsweb/lib/navigation.py (NavigationTree.render): Avoid
mutable default arguments.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-03-02 17:01:50 UTC (rev 1885)
+++ wasko/branches/2.0/ChangeLog	2010-03-03 18:06:34 UTC (rev 1886)
@@ -1,3 +1,8 @@
+2010-03-03  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/lib/navigation.py (NavigationTree.render): Avoid
+	mutable default arguments.
+
 2010-03-02  Bernhard Herzog  <bh at intevation.de>
 
 	* mpulsweb/lib/renderer.py (ErrorRenderer.render_items): Actually

Modified: wasko/branches/2.0/mpulsweb/lib/navigation.py
===================================================================
--- wasko/branches/2.0/mpulsweb/lib/navigation.py	2010-03-02 17:01:50 UTC (rev 1885)
+++ wasko/branches/2.0/mpulsweb/lib/navigation.py	2010-03-03 18:06:34 UTC (rev 1886)
@@ -355,7 +355,9 @@
                     stack.append(c.getChildren())
         return None
 
-    def render(self, page, file_cache, error_pages=set()):
+    def render(self, page, file_cache, error_pages=None):
+        if error_pages is None:
+            error_pages = set()
         error_lookup = set()
         self.root.build_error_lookup(error_lookup, error_pages)
         out = [u'<table class="navigation">']



More information about the Mpuls-commits mailing list