Esempio n. 1
0
 def _process(self):
     filename = secure_filename('{}-Ticket.pdf'.format(self.event.title),
                                'ticket.pdf')
     return send_file(filename, generate_ticket(self.registration),
                      'application/pdf')
Esempio n. 2
0
 def _process(self):
     filename = secure_filename('{}-Ticket.pdf'.format(self.event_new.title), 'ticket.pdf')
     return send_file(filename, generate_ticket(self.registration), 'application/pdf')