Beispiel #1
0
 def _process(self):
     abstracts = abstracts_schema.dump(
         sorted(self.abstracts, key=attrgetter('friendly_id')))
     questions = abstract_review_questions_schema.dump(
         self.event.abstract_review_questions)
     response = jsonify(version=1, abstracts=abstracts, questions=questions)
     response.headers[
         'Content-Disposition'] = 'attachment; filename="abstracts.json"'
     return response
Beispiel #2
0
 def _process(self):
     abstracts = abstracts_schema.dump(sorted(self.abstracts, key=attrgetter('friendly_id'))).data
     questions = abstract_review_questions_schema.dump(self.event.abstract_review_questions).data
     response = jsonify(version=1, abstracts=abstracts, questions=questions)
     response.headers['Content-Disposition'] = 'attachment; filename="abstracts.json"'
     return response