Пример #1
0
 def _process(self):
     if request.args.get('latex') == '1' and config.LATEX_ENABLED and self.event.can_manage(session.user):
         return send_file('book-of-abstracts.pdf', create_boa(self.event), 'application/pdf')
     if self.event.has_custom_boa:
         return self.event.custom_boa.send()
     elif config.LATEX_ENABLED:
         return send_file('book-of-abstracts.pdf', create_boa(self.event), 'application/pdf')
     raise NotFound
Пример #2
0
 def _process(self):
     return send_file('book-of-abstracts.pdf', create_boa(self.event), 'application/pdf')
Пример #3
0
 def _process(self):
     return send_file('book-of-abstracts.pdf', create_boa(self.event),
                      'application/pdf')
Пример #4
0
 def _process(self):
     if not config.LATEX_ENABLED:
         raise NotFound
     return send_file('book-of-abstracts.pdf', create_boa(self.event),
                      'application/pdf')