IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 27, 2013, 5:58:25 AM (13 years ago)
Author:
eugene
Message:

enable test mode from command-line (-test, after jython module); add parallel dvo option; make database selection more consistent and variable on test/not-test

File:
1 edited

Legend:

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

    r35003 r35063  
    1818    '''
    1919    def __init__(self, logger, config):
    20         super(IppToPspsDb, self).__init__(logger, config, "ipptopspsdatabase")
     20        if (config.test):
     21            dbType = "ipptopspsdatabase_test"
     22        else:
     23            dbType = "ipptopspsdatabase"
     24        super(IppToPspsDb, self).__init__(logger, config, dbType)
    2125
    2226        self.MAX_FAILS = 5
     
    965969        ,queue_ST \
    966970        ,queue_OB \
     971        ,parallel \
    967972        FROM config \
    968973        WHERE name = '" + self.config.name + "'"
     
    10061011            if rs.getInt(20) == 1: self.config.batchTypes.append("ST")
    10071012            if rs.getInt(21) == 1: self.config.batchTypes.append("OB")
     1013
    10081014            self.config.force = True # TODO
    1009             self.config.test = False # TODO
     1015            self.config.parallel = False # TODO
     1016
     1017            if rs.getInt(22) == 1: self.config.parallel = True
     1018
     1019            if self.config.parallel: print "USING parallel"
    10101020            self.config.isLoaded = True
    10111021        except:
Note: See TracChangeset for help on using the changeset viewer.