Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
 def new(self):
     # show new object form
     return render('/things/new.mako')
Ejemplo n.º 3
0
 def index(self):
     # Return a rendered template
     # or, return a response
     c.things = self.thing_q.all()
     return render('/things/index.mako')