def delete(self, id): Book.find(id).delete() self.redirect_to(action='index')
def index(self): self.books = Book.find("all")
def show(self, id): self.book = Book.find(id)