IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 31, 2013, 4:13:09 PM (13 years ago)
Author:
eugene
Message:

split out config (static info) and skychunk (area being processed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219/ippToPsps/jython/batchRepublisher.py

    r33866 r35076  
    3030            self.exitProgram("incorrect args")
    3131
    32         self.datastore = Datastore(self.logger, self.config, self.ippToPspsDb)
     32        self.datastore = Datastore(self.logger, self.skychunk, self.ippToPspsDb)
    3333        self.BATCHID = int(sys.argv[2])
    3434
     
    4040        batchName = Batch.getNameFromID(self.BATCHID)
    4141        batchType = self.ippToPspsDb.getBatchType(self.BATCHID)
    42         subDir = Batch.getSubDir(self.config.basePath, batchType, self.config.dvoLabel)
     42        subDir = Batch.getSubDir(self.skychunk.basePath, batchType, self.skychunk.dvoLabel)
    4343        tarballFile = Batch.getTarballFile(self.BATCHID)
    4444
     
    5050        self.logger.infoPair("Reseting batch in database", "%d" % self.BATCHID)
    5151        self.ippToPspsDb.resetBatch(self.BATCHID)
    52         self.logger.infoPair("publishing to", self.config.datastoreProduct)
     52        self.logger.infoPair("publishing to", self.skychunk.datastoreProduct)
    5353        Batch.publishToDatastore(self.datastore, self.BATCHID, batchName, subDir, tarballFile)
    5454
Note: See TracChangeset for help on using the changeset viewer.