IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2013, 2:23:09 PM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20130207/ippToPsps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130207/ippToPsps

  • branches/eam_branches/ipp-20130207/ippToPsps/jython/objectbatch.py

    r35097 r35235  
    5454
    5555       try:
    56            self.dvoObjects = DvoObjects(self.logger, self.config, self.skychunk, self.ippToPspsDb, self.scratchDb.dbName)
     56           ## XX pass in the existing connection to scratchDb
     57           self.dvoObjects = DvoObjects(self.logger, self.config, self.skychunk, self.ippToPspsDb, self.scratchDb)
    5758       except:
    5859           self.logger.errorPair("Unable to create instance of", "DvoObjects")
     
    7778        else:
    7879            self.dvoObjects.ingestRegion(self.region)
     80
     81        cptTableName = self.scratchDb.getDbFriendlyTableName(self.region + ".cpt")
     82        if not self.scratchDb.tableExists(cptTableName):
     83            return False
    7984
    8085        return True
     
    252257               ,dataRelease \
    253258               ,Random \
     259               ,batchID \
    254260               ) \
    255261               SELECT \
     
    268274               , " + str(self.skychunk.dataRelease) + "\
    269275               , RAND() \
     276               , " + str(self.batchID) + "\
    270277               FROM " + cptTableName
    271278
Note: See TracChangeset for help on using the changeset viewer.