def _process(self): badge_templates = self._conf.getBadgeTemplateManager().getTemplates().items() badge_templates.sort(key=lambda x: x[1].getName()) pdf_options = WConfModifBadgePDFOptions(self._conf).getHTML() badge_design_url = url_for('event_mgmt.confModifTools-badgePrinting', self.event_new) create_pdf_url = url_for('event_mgmt.confModifTools-badgePrintingPDF', self.event_new) return WPManageRegistration.render_template('management/print_badges.html', self._conf, regform=self.regform, templates=badge_templates, pdf_options=pdf_options, registrations=self.registrations, registration_ids=[x.id for x in self.registrations], badge_design_url=badge_design_url, create_pdf_url=create_pdf_url)
def _addExtras(self, vars): vars['PDFOptions'] = WConfModifBadgePDFOptions(self._conf, showKeepValues=False, showTip=False).getHTML()