Exemple #1
0
 def _process(self):
     sorted_abstracts = sorted(self.abstracts,
                               key=attrgetter('friendly_id'))
     response = jsonify(
         version=1, abstracts=abstracts_schema.dump(sorted_abstracts).data)
     response.headers[
         'Content-Disposition'] = 'attachment; filename="abstracts.json"'
     return response
Exemple #2
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
Exemple #3
0
 def _process(self):
     sorted_abstracts = sorted(self.abstracts, key=attrgetter('friendly_id'))
     response = jsonify(version=1, abstracts=abstracts_schema.dump(sorted_abstracts).data)
     response.headers['Content-Disposition'] = 'attachment; filename="abstracts.json"'
     return response
Exemple #4
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