lib/filesystem/map.py
branchsites
changeset 32 be954df4f0e8
parent 31 107062ebb6f9
child 33 19ea04f4b0cd
--- a/lib/filesystem/map.py	Sat Feb 07 16:33:27 2009 +0200
+++ b/lib/filesystem/map.py	Sat Feb 07 16:55:23 2009 +0200
@@ -16,13 +16,14 @@
         (template.TEMPLATE_EXT,     page.TemplatePage       ),
     ]
 
-    def __init__ (self, path) :
+    def __init__ (self, path, template) :
         """
             Create, path is where the pages are stored. The list of pages is loaded from $path/list
         """
         
         # store
-        self.path = path
+        self.path = path 
+        self.template = template
 
         # load the page tree
         self.tree = page_tree.PageTree(path + '/list')
@@ -118,7 +119,7 @@
         p.bind_request(request)
 
         # render the template
-        response_data = template.render("layout",
+        response_data = template.render(self.template,
             site_root_url   = request.get_script_dir(),
             site_page_url   = request.get_page_prefix(),
             page            = p,