Changeset 33495 for trunk/ippToPsps
- Timestamp:
- Mar 13, 2012, 10:09:35 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/dvo.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/dvo.py
r33356 r33495 51 51 52 52 ''' 53 Sets to scratch database53 Connects to the scratch database with the provided name, if not already connected 54 54 ''' 55 55 def setScratchDb(self, dbName): 56 57 # if we're already connected to this database, then get out of here 58 try: 59 if self.scratchDb.dbName == dbName: return 60 except: pass 56 61 57 62 self.scratchDb = ScratchDb(self.logger, self.config, dbName) 58 63 self.scratchDb.setUseFullTables(True) 59 64 60 # ordecide if we are using the right DVO65 # decide if we are using the right DVO 61 66 self.correctDvo = self.scratchDb.isCorrectDvo(self.config.dvoLocation) 62 67 63 68 if not self.correctDvo: 64 69 print "*******************************************************************************" … … 83 88 84 89 ''' 85 Resets all detections. Be careful86 '''87 def resetDetections(self):88 89 self.logger.infoPair("Resetting", "just detections")90 self.scratchDb.resetDvoDetectionTables()91 92 '''93 90 Resets all dvo tables. Be very careful.... 94 91 ''' … … 96 93 97 94 self.logger.infoPair("Resetting", "all tables") 98 self.scratchDb.resetAllDvoTables()95 if not self.scratchDb.resetAllDvoTables(): return False 99 96 self.correctDvo = True 100 97
Note:
See TracChangeset
for help on using the changeset viewer.
