Пример #1
0
 def save_pdf(self, out):
     db = self.db
     with db.session_ctx():
         name = self.irradiation
         irrad = db.get_irradiation(name)
         if irrad:
             w = IrradiationPDFWriter()
             w.build(out, irrad)
 def save_pdf(self, out):
     db = self.dvc.db
     name = self.irradiation
     irrad = db.get_irradiation(name)
     if irrad:
         w = IrradiationPDFWriter()
         info = w.options.edit_traits(kind='livemodal')
         if info.result:
             w.options.dump()
             w.build(out, irrad)
             return True
Пример #3
0
 def save_pdf(self, out):
     db = self.dvc.db
     with db.session_ctx():
         name = self.irradiation
         irrad = db.get_irradiation(name)
         if irrad:
             w = IrradiationPDFWriter()
             info = w.options.edit_traits(kind='livemodal')
             if info.result:
                 w.options.dump()
                 w.build(out, irrad)
                 return True