Beispiel #1
0
 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))
Beispiel #2
0
 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))