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')
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')