IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 14, 2012, 12:02:48 PM (14 years ago)
Author:
rhenders
Message:

Big changes to support a new Config class that encapuslates the xml config file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/stackbatch.py

    r33235 r33259  
    3030    def __init__(self,
    3131                 logger,
    32                  configPath,
    33                  configDoc,
     32                 config,
    3433                 gpc1Db,
    3534                 ippToPspsDb,
     
    4039       super(StackBatch, self).__init__(
    4140               logger,
    42                configPath,
    43                configDoc,
     41               config,
    4442               gpc1Db,
    4543               ippToPspsDb,
     
    4745               batchID,
    4846               "ST",
    49                gpc1Db.getStackStageCmf(configDoc.find("dvo/gpc1Label").text, stackID),
     47               gpc1Db.getStackStageCmf(config.dvoLabel, stackID),
    5048               useFullTables)
    5149
     
    307305        self.scratchDb.updateAllRows("StackMeta", "surveyID", str(self.surveyID))
    308306        self.scratchDb.updateFilterID("StackMeta", self.filter)
    309         self.scratchDb.updateAllRows("StackMeta", "dataRelease", str(self.dataRelease))
     307        self.scratchDb.updateAllRows("StackMeta", "dataRelease", str(self.config.dataRelease))
    310308        self.updateStackTypeID("StackMeta")
    311309
     
    403401        self.scratchDb.updateAllRows("StackDetection", "surveyID", str(self.surveyID))
    404402        self.scratchDb.updateFilterID("StackDetection", self.filter)
    405         self.scratchDb.updateAllRows("StackDetection", "dataRelease", str(self.dataRelease))
     403        self.scratchDb.updateAllRows("StackDetection", "dataRelease", str(self.config.dataRelease))
    406404        self.scratchDb.updateAllRows("StackDetection", "primaryF", "0")
    407405        self.scratchDb.updateAllRows("StackDetection", "activeFlag", "0")
     
    467465        self.scratchDb.updateAllRows("StackApFlx", "surveyID", str(self.surveyID))
    468466        self.scratchDb.updateFilterID("StackApFlx", self.filter)
    469         self.scratchDb.updateAllRows("StackApFlx", "dataRelease", str(self.dataRelease))
     467        self.scratchDb.updateAllRows("StackApFlx", "dataRelease", str(self.config.dataRelease))
    470468        self.scratchDb.updateAllRows("StackApFlx", "primaryF", "0")
    471469        self.scratchDb.updateAllRows("StackApFlx", "activeFlag", "0")
Note: See TracChangeset for help on using the changeset viewer.