From fe27dbbfc478e2993f27fbbbba5c51a21b5d4849 Mon Sep 17 00:00:00 2001 From: Holger Schurig Date: Mon, 5 Jul 2010 16:31:45 +0200 Subject: [PATCH] hierarchy.py: fix get_linear_sitemap() --- plugins/hierarchy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/hierarchy.py b/plugins/hierarchy.py index 5940ed4..82cbd6a 100644 --- a/plugins/hierarchy.py +++ b/plugins/hierarchy.py @@ -173,7 +173,7 @@ def get_linear_sitemap(root="Home", show_orphans=False, level=1): root = get_file_for(root) visited = {root: None} - res = [(0, root, )] + res = [(0, root, get_link_from(page, root))] def do_menu(pg, level): #print "pg:", pg @@ -205,8 +205,8 @@ def get_linear_sitemap(root="Home", show_orphans=False, level=1): continue #print "not found:", file.linktitle res.append( (0, file, get_link_from(page, file.linktitle))) - import pprint - pprint.pprint(res) + #import pprint + #pprint.pprint(res) return res -- 2.39.2