Пример #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
 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')