Exemplo n.º 1
0
 def csv2istsos(self):
     from scripts import csv2istsos
     csv2istsos.execute(
         {
             'u':
             self.url,
             's':
             self.service,
             'wd':
             self.folderOut,
             'p': [self.name],
             'user':
             self.user,
             'password':
             self.password,
             'f':
             True if
             ('disable-force-insert' in self.extra
              and self.extra['disable-force-insert'] == True) else False
         },
         conf={
             'logger':
             self.debugConverter
             if isinstance(self.debugConverter, DebugConverter) else self,
             'description':
             self.describe
         })
Exemplo n.º 2
0
 def csv2istsos(self):
     from scripts import csv2istsos
     csv2istsos.datacache = {
         self.name: self.describe
     }
     csv2istsos.execute({
         'u': self.url,
         's': self.service,
         'wd': self.folderOut,
         'p': [self.name]
     },self)
Exemplo n.º 3
0
 def csv2istsos(self):
     from scripts import csv2istsos
     csv2istsos.execute(
         {
             'u': self.url,
             's': self.service,
             'wd': self.folderOut,
             'p': [self.name],
             'user': self.user,
             'password': self.password
         },
         conf={
             'logger':
             self.debugConverter
             if isinstance(self.debugConverter, DebugConverter) else self,
             'description':
             self.describe
         })
Exemplo n.º 4
0
        
        try:
            
            istsos2csv.execute({
                'begin': begin.isoformat(),
                'end': end.isoformat(),
                'procedure': procedure,
                'op': op,
                'url': '%s/%s' % (url1, srv1),
                'd': dirpath
            })
            
            csv2istsos.execute({
                'u':  url2,
                's': srv2,
                'wd': dirpath,
                'p': [procedure],
                'v': True
            })
        
        except Exception as e:
            print "*****************************************************************"
            print str(e)
            traceback.print_exc()
            print "*****************************************************************"
            pass
    
        shutil.rmtree(dirpath)
        print "Sleeping.. yaaaawn"
        #time.sleep(1)
Exemplo n.º 5
0
            'begin': begin.isoformat(),
            'end': end.isoformat(),
            'procedure': procedure,
            'op': op,
            'url': '%s/%s' % (url1, srv1),
            'd': dirpath,
            'user': auth[0],
            'password': auth[1],
            'noqi': True
        })
        
        csv2istsos.execute({
            'u':  url2,
            's': srv2,
            'wd': dirpath,
            'p': [procedure],
            'v': True,
            'user': auth[0],
            'password': auth[1],
            'noqi': True
        })
    
    except Exception as e:
        print "*****************************************************************"
        print str(e)
        traceback.print_exc()
        print "*****************************************************************"
        pass
    
    shutil.rmtree(dirpath)