Exemplo n.º 1
0
 def _process(self):
     form = self.field_cls.create_config_form()
     if form.validate_on_submit():
         new_question = create_reviewing_question(self.event, AbstractReviewQuestion, self.field_cls, form)
         self.event.abstract_review_questions.append(new_question)
         logger.info("Abstract reviewing question %r created by %r", new_question, session.user)
         return jsonify_data(flash=False)
     return jsonify_form(form, fields=getattr(form, '_order', None))
Exemplo n.º 2
0
 def _process(self):
     form = self.field_cls.create_config_form()
     if form.validate_on_submit():
         new_question = create_reviewing_question(self.event, AbstractReviewQuestion, self.field_cls, form)
         self.event.abstract_review_questions.append(new_question)
         logger.info("Abstract reviewing question %r created by %r", new_question, session.user)
         return jsonify_data(flash=False)
     return jsonify_form(form, fields=getattr(form, '_order', None))
Exemplo n.º 3
0
 def _process(self):
     form = self.field_cls.create_config_form()
     if form.validate_on_submit():
         new_question = create_reviewing_question(self.event, PaperReviewQuestion, self.field_cls, form,
                                                  {'type': PaperReviewType[self.review_type]})
         self.event.paper_review_questions.append(new_question)
         logger.info("Reviewing question %r created by %r", new_question, session.user)
         return jsonify_data(flash=False)
     return jsonify_form(form, fields=getattr(form, '_order', None))
Exemplo n.º 4
0
 def _process(self):
     form = self.field_cls.create_config_form()
     if form.validate_on_submit():
         new_question = create_reviewing_question(self.event, PaperReviewQuestion, self.field_cls, form,
                                                  {'type': PaperReviewType[self.review_type]})
         self.event.paper_review_questions.append(new_question)
         logger.info("Reviewing question %r created by %r", new_question, session.user)
         return jsonify_data(flash=False)
     return jsonify_form(form, fields=getattr(form, '_order', None))