Beispiel #1
0
 def write_email_pdf(self):
     prefs = pdf_exporter.get_pdf_prefs()
     for r in self.recipes:
         fi = os.path.join(gglobals.tmpdir, "%s.pdf" % r.title)
         ofi = open(fi, 'w')
         e = pdf_exporter.PdfExporter(self.rd,
                                      r,
                                      ofi,
                                      conv=self.conv,
                                      change_units=self.change_units,
                                      pdf_args=prefs)
         ofi.close()
         self.attachments.append(fi)
 def write_email_pdf (self):
     prefs = pdf_exporter.get_pdf_prefs()
     for r in self.recipes:
         fi = os.path.join(gglobals.tmpdir,"%s.pdf"%r.title)
         ofi = open(fi,'w')
         e = pdf_exporter.PdfExporter(self.rd,
                                      r,
                                      ofi,
                                      conv=self.conv,
                                      change_units=self.change_units,
                                      pdf_args=prefs)
         ofi.close()
         self.attachments.append(fi)
Beispiel #3
0
 def setup_printer(self, parent=None):
     self.args = pdf_exporter.get_pdf_prefs()
     self.begin_print(None, None)
 def run_extra_prefs_dialog(self):
     return pdf_exporter.get_pdf_prefs()
 def run_extra_prefs_dialog (self,args):
     return pdf_exporter.get_pdf_prefs()
Beispiel #6
0
 def setup_printer (self, parent=None):
     self.args = pdf_exporter.get_pdf_prefs()
     self.begin_print(None, None)