[Mpuls-commits] r4122 - in base/trunk: . mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 3 16:55:16 CET 2010


Author: bh
Date: 2010-11-03 16:55:15 +0100 (Wed, 03 Nov 2010)
New Revision: 4122

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/controllers/navigation.py
Log:
* mpulsweb/controllers/navigation.py
(NavigationController.open_all_branches): Remove this unused
method.  It was checked in accidentally.


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2010-11-03 15:51:12 UTC (rev 4121)
+++ base/trunk/ChangeLog	2010-11-03 15:55:15 UTC (rev 4122)
@@ -1,5 +1,11 @@
 2010-11-03  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/controllers/navigation.py
+	(NavigationController.open_all_branches): Remove this unused
+	method.  It was checked in accidentally.
+
+2010-11-03  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/lib/base.py (BaseController.__before__): Simply pass
 	all languages from the request plus the default language to the
 	set_lang function instead of trying to figure out in __before__

Modified: base/trunk/mpulsweb/controllers/navigation.py
===================================================================
--- base/trunk/mpulsweb/controllers/navigation.py	2010-11-03 15:51:12 UTC (rev 4121)
+++ base/trunk/mpulsweb/controllers/navigation.py	2010-11-03 15:55:15 UTC (rev 4122)
@@ -46,21 +46,6 @@
     def index(self):
         raise HTTPNotFound()
 
-    def open_all_branches(self, tree=None):
-        self.navigation = session['navigation.tree']
-        if tree == None:
-            tree = self.navigation.getAllItems()
-        for branch in tree:
-            if branch.is_child():
-                print "branch %s - %s is a leaf, skipping..." % (branch.name, branch.description)
-                pass
-            else:
-                print "branch %s - %s is a node, opening..." % (branch.name, branch.description)
-                self.open_all_branches(branch)
-                pass
-            #print branch
-
-
     def open_branch(self, id):
         self.navigation = session['navigation.tree']
         tree_item = self.navigation.getTreeItem(id)



More information about the Mpuls-commits mailing list