示例#1
0
 def _process(self):
     static_item_ids, item_ids = self.list_generator.get_item_ids()
     pdf = RegistrantsListToBookPDF(self.event, self.regform,
                                    self.registrations, item_ids,
                                    static_item_ids)
     return send_file('RegistrantsBook.pdf', BytesIO(pdf.getPDFBin()),
                      'application/pdf')
示例#2
0
 def _process(self):
     pdf = RegistrantsListToBookPDF(
         self._conf,
         reglist=self.registrations,
         display=self.export_config['regform_items'],
         static_items=self.export_config['static_item_ids'])
     return send_file('RegistrantsBook.pdf', BytesIO(pdf.getPDFBin()),
                      'PDF')
示例#3
0
文件: reglists.py 项目: jas01/indico
 def _process(self):
     static_item_ids, item_ids = self.list_generator.get_item_ids()
     pdf = RegistrantsListToBookPDF(self.event, self.regform, self.registrations, item_ids, static_item_ids)
     return send_file('RegistrantsBook.pdf', BytesIO(pdf.getPDFBin()), 'application/pdf')