]> oss.titaniummirror.com Git - webber.git/commitdiff
hierarchy.py: fix get_linear_sitemap()
authorHolger Schurig <holgerschurig@gmail.com>
Mon, 5 Jul 2010 14:31:45 +0000 (16:31 +0200)
committerHolger Schurig <holgerschurig@gmail.com>
Mon, 5 Jul 2010 14:31:45 +0000 (16:31 +0200)
plugins/hierarchy.py

index 5940ed4ff12c0fcd64fb9a7f619965688f68929e..82cbd6a14a5e975d2c7e407b2227484533be9404 100644 (file)
@@ -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