Exemple #1
0
 def get_page(self, slug):
     try:
         c.page = m.Session.query(m.Page).filter(m.Page.slug == slug).one()
     except sa.orm.exc.NoResultFound:
         abort(404)
         
     return render('page.mako')
Exemple #2
0
    def get_abilities(self, slug):
        try:
            c.cat = m.Session.query(m.AbilityCat).filter(
                m.AbilityCat.slug == slug
            ).one()
        except sa.orm.exc.NoResultFound:
            abort(404)

        response.headers['Content-type'] = 'application/xml; charset=utf-8'
        return render('/abilities/get_category.mako')
Exemple #3
0
 def index(self):
     c.cats = m.Session.query(m.AbilityCat).all()
     return render('/abilities/index.mako')
Exemple #4
0
 def index(self):
     c.projects = m.Session.query(m.Project).order_by(m.Project.id).all()
     return render('projects.mako')
Exemple #5
0
 def index(self):
     return render('/main.mako')