equal
deleted
inserted
replaced
14 PAGE_TYPES = [ |
14 PAGE_TYPES = [ |
15 ('html', page.HTMLPage ), |
15 ('html', page.HTMLPage ), |
16 (template.TEMPLATE_EXT, page.TemplatePage ), |
16 (template.TEMPLATE_EXT, page.TemplatePage ), |
17 ] |
17 ] |
18 |
18 |
19 def __init__ (self, path, template) : |
19 def __init__ (self, path, templates) : |
20 """ |
20 """ |
21 Create, path is where the pages are stored. The list of pages is loaded from $path/list |
21 Create, path is where the pages are stored. The list of pages is loaded from $path/list |
22 """ |
22 """ |
23 |
23 |
24 # store |
24 # store |
25 self.path = path |
25 self.path = path |
26 self.template = template |
26 self.templates = templates |
27 |
27 |
28 # load the page tree |
28 # load the page tree |
29 self.tree = page_tree.PageTree(path + '/list') |
29 self.tree = page_tree.PageTree(path + '/list') |
30 |
30 |
31 def _lookup_page_type (self, url, path, filename, basename, extension, tail) : |
31 def _lookup_page_type (self, url, path, filename, basename, extension, tail) : |