IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 2, 2011, 4:29:01 PM (15 years ago)
Author:
rhenders
Message:

now passing XML config document to Datastore constructor

File:
1 edited

Legend:

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

    r31839 r31985  
    1717
    1818    '''
    19     def __init__(self, logger):
     19    def __init__(self, logger, doc):
    2020   
    2121        # setup logger
    2222        self.logger = logger
     23        self.doc = doc
    2324        self.logger.debug("Datastore constructor")
    2425
    2526        # open config
    26         doc = ElementTree(file="config.xml")
    2727        self.product = doc.find("datastore/product").text
    2828        self.type = doc.find("datastore/type").text
Note: See TracChangeset for help on using the changeset viewer.