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')
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')
def index(self): c.cats = m.Session.query(m.AbilityCat).all() return render('/abilities/index.mako')
def index(self): c.projects = m.Session.query(m.Project).order_by(m.Project.id).all() return render('projects.mako')
def index(self): return render('/main.mako')