Exemplo n.º 1
0
 def show(self, id):
     question = self.question_q.filter_by(id = id).first()
     if question:
         c.question = question
         return render('questions/show.genshi')
     abort(404)
Exemplo n.º 2
0
 def new(self):
     return render('questions/new.genshi')
Exemplo n.º 3
0
 def index(self):
     c.questions = self.question_q.all()
     return render('questions/index.genshi')