equal
deleted
inserted
replaced
12 |
12 |
13 # for TemplatePage |
13 # for TemplatePage |
14 import template |
14 import template |
15 |
15 |
16 from page_tree import page_tree |
16 from page_tree import page_tree |
|
17 import config |
17 |
18 |
18 # path to directory containing the page heirarcy |
19 # path to directory containing the page heirarcy |
19 PAGE_DIR = "pages" |
20 PAGE_DIR = "pages" |
20 |
21 |
21 class PageError (http.ResponseError) : |
22 class PageError (http.ResponseError) : |
104 """ |
105 """ |
105 |
106 |
106 # stat |
107 # stat |
107 timestamp = os.stat(self.path).st_mtime |
108 timestamp = os.stat(self.path).st_mtime |
108 |
109 |
109 return time.strftime("%Y/%m/%d %H:%M %Z", time.gmtime(timestamp)) |
110 return time.strftime(config.DATETIME_FMT, time.gmtime(timestamp)) |
110 |
111 |
111 class HTMLPage (Page) : |
112 class HTMLPage (Page) : |
112 """ |
113 """ |
113 A simple .html page that's just passed through directly |
114 A simple .html page that's just passed through directly |
114 """ |
115 """ |