Exemplo n.º 1
0
    def _import_irradiations(self, meta):
        im = ImportManager(db=self.db)
        if self._set_source(meta, im):
            if self._set_destination(meta):
                self._set_importer(meta, im)

                if im.do_import(new_thread=False):
                    self.debug('import finished')
                else:
                    self.warning('import failed')
Exemplo n.º 2
0
    def _import_irradiations(self, meta):
        self.debug('importing analyses')

        if not self._set_destination(meta):
            self.warning('failed to set destination')
            return

        im = ImportManager(db=self.manager.db)
        self._set_source(meta, im)

        self._set_importer(meta, im)

        if im.do_import(new_thread=False):
            self.debug('import finished')
        else:
            self.warning('import failed')
Exemplo n.º 3
0
    def _import_irradiations(self, meta):
        self.debug('importing analyses')

        if not self._set_destination(meta):
            self.warning('failed to set destination')
            return

        im = ImportManager(db=self.manager.db)
        self._set_source(meta, im)

        self._set_importer(meta, im)

        if im.do_import(new_thread=False):
            self.debug('import finished')
        else:
            self.warning('import failed')