def show(self, uuid): # show an object thing = self.thing_q.filter_by(uuid=uuid).first() if thing: c.thing = thing return render('/things/show.mako') else: abort(404)
def new(self): # show new object form return render('/things/new.mako')
def index(self): # Return a rendered template # or, return a response c.things = self.thing_q.all() return render('/things/index.mako')