示例#1
0
 def _process(self):
     pdf = RegistrantsListToPDF(self._conf, reglist=self.registrations, display=self.export_config['regform_items'],
                                static_items=self.export_config['static_item_ids'])
     try:
         data = pdf.getPDFBin()
     except Exception:
         if Config.getInstance().getDebug():
             raise
         raise FormValuesError(_("Text too large to generate a PDF with table style. "
                                 "Please try again generating with book style."))
     return send_file('RegistrantsList.pdf', BytesIO(data), 'PDF')
示例#2
0
 def _process(self):
     pdf = RegistrantsListToPDF(self.event, reglist=self.registrations, display=self.export_config['regform_items'],
                                static_items=self.export_config['static_item_ids'])
     try:
         data = pdf.getPDFBin()
     except Exception:
         if config.DEBUG:
             raise
         raise NoReportError(_("Text too large to generate a PDF with table style. "
                               "Please try again generating with book style."))
     return send_file('RegistrantsList.pdf', BytesIO(data), 'application/pdf')
示例#3
0
文件: reglists.py 项目: jas01/indico
 def _process(self):
     pdf = RegistrantsListToPDF(self.event, reglist=self.registrations, display=self.export_config['regform_items'],
                                static_items=self.export_config['static_item_ids'])
     try:
         data = pdf.getPDFBin()
     except Exception:
         if config.DEBUG:
             raise
         raise NoReportError(_("Text too large to generate a PDF with table style. "
                               "Please try again generating with book style."))
     return send_file('RegistrantsList.pdf', BytesIO(data), 'application/pdf')