Ejemplo n.º 1
0
 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))
Ejemplo n.º 2
0
 def backToList(self):
     self.view.displayList(Post.findAll(self.db))
Ejemplo n.º 3
0
 def start(self):
     self.view.displayList(Post.findAll(self.db))