IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 17, 2013, 3:37:35 PM (13 years ago)
Author:
eugene
Message:

re-work config info for scratch db to load host-based names

File:
1 edited

Legend:

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

    r35097 r35177  
    1919    Constructor
    2020    '''
    21     def __init__(self, logger, config, dbVersion, dbName=None):
     21    def __init__(self, logger, config):
    2222
    2323        # create gpc1 database objects
     24        # XXX the test option is probably not needed since
     25        # the scratchDb config infor is set up specially
    2426        if (config.test):
    2527            dbType = "localdatabase_test"
     
    2729            dbType = "localdatabase"
    2830
    29         if not dbName:
    30             dbName = config.getDbName(dbType)
    31             dbName += dbVersion
     31        dbName = config.getDbName(dbType)
    3232
    3333        super(ScratchDb, self).__init__(logger, config, dbType, dbName)
Note: See TracChangeset for help on using the changeset viewer.