- Timestamp:
- Jan 27, 2013, 5:58:25 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121219/ippToPsps/jython/loader.py
r35056 r35063 34 34 super(Loader, self).__init__(argv, 1, 1) 35 35 36 # create gpc1 database objects 36 if self.config.parallel: 37 print "PARALLEL dvo" 38 else: 39 print "SERIAL dvo" 40 41 # connect to the gpc1 database 37 42 self.gpc1Db = Gpc1Db(self.logger, self.config) 38 43 39 # XXX this is really bad: need to get these from config... (see this code:)40 ## XX # open config and grab database parameters41 ## XX if not dbName: self.dbName = config.getDbName(dbType)42 ## XX else: self.dbName = dbName43 44 44 # connect to scratch database 45 scratchDbs = [' ipptopsps_test_scratch', 'ipptopsps_test_scratch2', 'ipptopsps_test_scratch3']46 for db Namein scratchDbs:47 self.scratchDb = ScratchDb(self.logger, self.config, db Name)48 if self.scratchDb.anyOtherConnections():49 self.logger.errorPair("This scratch Db is already in use", dbName)45 scratchDbs = ['1', '2', '3'] 46 for dbVersion in scratchDbs: 47 self.scratchDb = ScratchDb(self.logger, self.config, dbVersion) 48 if not self.config.test and self.scratchDb.anyOtherConnections(): 49 self.logger.errorPair("This scratch Db is already in use", self.scratchDb.dbName) 50 50 self.scratchDb.disconnect() 51 51 continue
Note:
See TracChangeset
for help on using the changeset viewer.
