Example #1
0
 def _process(self):
     pdf = RegistrantsListToBookPDF(self.event,
                                    reglist=self.registrations,
                                    display=self.regform_items,
                                    special_items=self.special_item_ids)
     return send_file('RegistrantsBook.pdf', BytesIO(pdf.getPDFBin()),
                      'PDF')
Example #2
0
 def _process(self):
     pdf = RegistrantsListToBookPDF(
         self.event,
         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')
Example #3
0
 def pdf( self ):
     filename = "RegistrantsBook.pdf"
     pdf = RegistrantsListToBookPDF(self._conf,list=self._list, display=self._display)
     data = pdf.getPDFBin()
     self._rh._req.set_content_length(len(data))
     cfg = Config.getInstance()
     mimetype = cfg.getFileTypeMimeType( "PDF" )
     self._rh._req.content_type = """%s"""%(mimetype)
     self._rh._req.headers_out["Content-Disposition"] = """inline; filename="%s\""""%filename
     return data
Example #4
0
 def pdf( self ):
     filename = "RegistrantsBook.pdf"
     pdf = RegistrantsListToBookPDF(self._conf,list=self._list, display=self._display)
     data = pdf.getPDFBin()
     self._rh._req.set_content_length(len(data))
     cfg = Config.getInstance()
     mimetype = cfg.getFileTypeMimeType( "PDF" )
     self._rh._req.content_type = """%s"""%(mimetype)
     self._rh._req.headers_out["Content-Disposition"] = """inline; filename="%s\""""%filename
     return data
Example #5
0
 def pdf(self):
     pdf = RegistrantsListToBookPDF(self._conf, list=self._list, display=self._display)
     return send_file('RegistrantsBook.pdf', StringIO(pdf.getPDFBin()), 'PDF')
Example #6
0
 def _process(self):
     pdf = RegistrantsListToBookPDF(self.event, reglist=self.registrations, display=self.regform_items,
                                    special_items=self.special_item_ids)
     return send_file('RegistrantsBook.pdf', BytesIO(pdf.getPDFBin()), 'PDF')
Example #7
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')
Example #8
0
 def pdf(self):
     pdf = RegistrantsListToBookPDF(self._conf,
                                    list=self._list,
                                    display=self._display)
     return send_file('RegistrantsBook.pdf', StringIO(pdf.getPDFBin()),
                      'PDF')