示例#1
0
 def _process_args(self):
     RHManageSurveysBase._process_args(self)
     self.question = SurveyQuestion.find_one(
         SurveyQuestion.id == request.view_args['question_id'],
         ~Survey.is_deleted,
         _join=SurveyQuestion.survey,
         _eager=SurveyQuestion.survey)
     self.survey = self.question.survey
示例#2
0
 def _checkParams(self, params):
     RHManageSurveysBase._checkParams(self, params)
     self.question = SurveyQuestion.find_one(
         SurveyQuestion.id == request.view_args['question_id'],
         ~Survey.is_deleted,
         _join=SurveyQuestion.survey,
         _eager=SurveyQuestion.survey)
     self.survey = self.question.survey
示例#3
0
 def _checkParams(self, params):
     RHManageSurveysBase._checkParams(self, params)
     self.question = SurveyQuestion.find_one(SurveyQuestion.id == request.view_args['question_id'],
                                             ~Survey.is_deleted,
                                             _join=SurveyQuestion.survey, _eager=SurveyQuestion.survey)
     self.survey = self.question.survey
示例#4
0
 def _process_args(self):
     RHManageSurveysBase._process_args(self)
     self.question = SurveyQuestion.find_one(SurveyQuestion.id == request.view_args['question_id'],
                                             ~Survey.is_deleted,
                                             _join=SurveyQuestion.survey, _eager=SurveyQuestion.survey)
     self.survey = self.question.survey