def get(self, page_name=None): if page_name is None or page_name == '': page_name = self.settings.get('start_page') else: page_name = pages.unquote(page_name) if self.request.get("edit"): return self.get_edit(page_name) elif self.request.get("history"): return self.get_history(page_name) else: return self.get_view(page_name)
def get_edit(self, page_name): self.acl.check_edit_pages() page = pages.get(pages.unquote(page_name), self.request.get('r')) self.generate('edit.html', template_values={ 'page': page, })