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 })
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)
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 })
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)
'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)