def _process(self):
     form = build_review_form(review=self.review)
     if form.validate_on_submit():
         update_abstract_review(self.review, **form.split_data)
         return jsonify_data(flash=False,
                             html=render_abstract_page(
                                 self.abstract, management=self.management))
     tpl = get_template_module('events/reviews/forms.html')
     return jsonify(html=tpl.render_review_form(form, review=self.review))
 def _process(self):
     form = AbstractCommentForm(abstract=self.abstract, user=session.user)
     if form.validate_on_submit():
         create_abstract_comment(self.abstract, form.data)
         return jsonify_data(flash=False,
                             html=render_abstract_page(
                                 self.abstract, management=self.management))
     tpl = get_template_module('events/reviews/forms.html')
     return jsonify(
         html=tpl.render_comment_form(form, proposal=self.abstract))
 def _process(self):
     form = AbstractReviewedForTracksForm(event=self.event,
                                          obj=self.abstract)
     if form.validate_on_submit():
         update_reviewed_for_tracks(self.abstract,
                                    form.reviewed_for_tracks.data)
         return jsonify_data(flash=False,
                             html=render_abstract_page(
                                 self.abstract, management=self.management))
     return jsonify_template(
         'events/abstracts/forms/edit_review_tracks.html', form=form)
 def _process(self):
     form = build_review_form(self.abstract, self.track)
     if form.validate_on_submit():
         create_abstract_review(self.abstract, self.track, session.user,
                                **form.split_data)
         return jsonify_data(flash=False,
                             html=render_abstract_page(
                                 self.abstract, management=self.management))
     tpl = get_template_module('events/reviews/forms.html')
     return jsonify(html=tpl.render_review_form(
         form, proposal=self.abstract, group=self.track))
 def _process(self):
     form = AbstractJudgmentForm(abstract=self.abstract)
     if form.validate_on_submit():
         judgment_data, abstract_data = form.split_data
         judge_abstract(self.abstract,
                        abstract_data,
                        judge=session.user,
                        **judgment_data)
         return jsonify_data(flash=False,
                             html=render_abstract_page(
                                 self.abstract, management=self.management))
     tpl = get_template_module('events/reviews/_common.html')
     return jsonify(
         html=tpl.render_decision_box(self.abstract, form, session.user))
 def _process(self):
     form = AbstractCommentForm(obj=self.comment,
                                abstract=self.abstract,
                                user=session.user,
                                prefix='edit-comment-{}-'.format(
                                    self.comment.id))
     if form.validate_on_submit():
         update_abstract_comment(self.comment, form.data)
         return jsonify_data(flash=False,
                             html=render_abstract_page(
                                 self.abstract, management=self.management))
     tpl = get_template_module('events/reviews/forms.html')
     return jsonify(html=tpl.render_comment_form(
         form, proposal=self.abstract, comment=self.comment, edit=True))
 def _process(self):
     if self.abstract.state != AbstractState.withdrawn:
         withdraw_abstract(self.abstract)
         flash(_("Abstract has been withdrawn"), 'success')
     return jsonify_data(html=render_abstract_page(
         self.abstract, management=self.management))
 def _process(self):
     if self.abstract.state != AbstractState.submitted:
         reset_abstract_state(self.abstract)
         flash(_("Abstract judgment has been reset"), 'success')
     return jsonify_data(html=render_abstract_page(
         self.abstract, management=self.management))
 def _process(self):
     return render_abstract_page(self.abstract,
                                 view_class=self.view_class,
                                 management=self.management)