class HistoryPage(BlogHandler):
def get(self, path):
q = Page.by_path(path)
q.fetch(limit = 100)
posts = list(q)
if posts:
self.render("history.html" , path = path, posts = posts)
else:
self.redirect("/_edit" + path)
问问题
348 次