[Mpuls-commits] r887 - wasko/branches/2.0/waskaweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Jan 26 15:04:44 CET 2010


Author: torsten
Date: 2010-01-26 15:04:43 +0100 (Tue, 26 Jan 2010)
New Revision: 887

Modified:
   wasko/branches/2.0/waskaweb/lib/navigation.py
Log:
* waskaweb/lib/navigation.py (render_navigation): New. Copied from lib.helpers


Modified: wasko/branches/2.0/waskaweb/lib/navigation.py
===================================================================
--- wasko/branches/2.0/waskaweb/lib/navigation.py	2010-01-26 13:57:35 UTC (rev 886)
+++ wasko/branches/2.0/waskaweb/lib/navigation.py	2010-01-26 14:04:43 UTC (rev 887)
@@ -63,6 +63,11 @@
     print "n3"
     return navigation
 
+def render_navigation(mode="r"):
+    tree = session['navigation.tree']
+    error_pages = set()
+    return tree.render(tree.root, FileCache(), error_pages)
+
 def mark_folderopen(ti):
     if ti.key not in session.get('navigation.openfolders'): 
         session['navigation.openfolders'].append(ti.key)



More information about the Mpuls-commits mailing list