def showPost(self, key): try: self.view.displayPost(Post.find(self.db, key)) except KeyError: self.view.showError("Post not found.") self.view.displayList(Post.findAll(self.db))
def backToList(self): self.view.displayList(Post.findAll(self.db))
def start(self): self.view.displayList(Post.findAll(self.db))