Beispiel #1
0
 def ordered_questions(self):
     return SessionBase.object_session(self).query(Question).with_parent(self).order_by(Question.order).all()
Beispiel #2
0
 def ordered_answers(self):
     return SessionBase.object_session(self).query(Answer).with_parent(self).order_by(Answer.order).all()
Beispiel #3
0
 def active_questions(self):
     return SessionBase.object_session(self).query(Question).with_parent(self).filter(Question.active==True).order_by(Question.order).all()