예제 #1
0
파일: base.py 프로젝트: cbworden/oq-engine
 def _export(self, ekey):
     if ekey not in exp or self.exported.get(ekey):  # already exported
         return
     with self.monitor('export'):
         self.exported[ekey] = fnames = exp(ekey, self.datastore)
         if fnames:
             logging.info('exported %s: %s', ekey[0], fnames)
예제 #2
0
 def _export(self, ekey):
     if ekey not in exp or self.exported.get(ekey):  # already exported
         return
     with self.monitor('export'):
         try:
             self.exported[ekey] = fnames = exp(ekey, self.datastore)
         except Exception as exc:
             fnames = []
             logging.error('Could not export %s: %s', ekey, exc)
         if fnames:
             logging.info('exported %s: %s', ekey[0], fnames)
예제 #3
0
파일: base.py 프로젝트: gem/oq-engine
 def _export(self, ekey):
     if ekey not in exp or self.exported.get(ekey):  # already exported
         return
     with self.monitor('export'):
         try:
             self.exported[ekey] = fnames = exp(ekey, self.datastore)
         except Exception as exc:
             fnames = []
             logging.error('Could not export %s: %s', ekey, exc)
         if fnames:
             logging.info('exported %s: %s', ekey[0], fnames)
예제 #4
0
 def _export(self, ekey, exported):
     if ekey in exp:
         with self.monitor('export'):
             exported[ekey] = exp(ekey, self.datastore)
             logging.info('exported %s: %s', ekey[0], exported[ekey])