def show(self, id): ticket_q = model.meta.Session.query(model.Ticket) for ticket in ticket_q.filter(model.Ticket.id == id): c.title = "Viewing ticket number " + str(ticket.id) c.created_at = ticket.created_at c.description = ticket.description return render("/base/ticket.mako")
def show(self): return render('/base/home.mako')
def index(self): # Return a rendered template return render('/component/login.mako')