IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33555 for trunk/ippToPsps


Ignore:
Timestamp:
Mar 16, 2012, 12:05:58 PM (14 years ago)
Author:
rhenders
Message:

creates Odm object in constructor, no need to override refreshConfig() method; minor formatting change to stdout

File:
1 edited

Legend:

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

    r33488 r33555  
    3333            self.exitProgram("incorrect args")
    3434
     35        # create Odm object
     36        self.odm = Odm(self.logger)
     37
    3538        # get poll time arg
    3639        if len(sys.argv) > 4: self.parsePollTimeArg(sys.argv[4])
     
    4447        for stage in self.stages: self.logger.infoPair("Checking stage", stage)
    4548        for batchType in self.batchTypes: self.logger.infoPair("Checking batch type", batchType)
    46 
    47     '''
    48     Overrides base-class version
    49     '''
    50     def refreshConfig(self):
    51         ret = super(PollOdm, self).refreshConfig()
    52         self.odm = Odm(self.logger, self.config)
    53         return ret
    5449
    5550    '''
     
    117112   
    118113            else:
    119                     self.logger.info("| %9s | failed to poll ODM                                                                    |" % Batch.getNameFromID(id))
     114                    self.logger.info("| %9s | failed to poll ODM                                                                                  |" % Batch.getNameFromID(id))
    120115   
    121116        self.logger.info("+-----------+----------------+----------------+----------------+----------------+----------------+----------------+")
Note: See TracChangeset for help on using the changeset viewer.