Changeset 4958 for MILK


Ignore:
Timestamp:
12/02/09 10:22:42 (10 years ago)
Author:
cbyrom
Message:

Adjust MILK stack startup to properly initialise connection to new eXist clients.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/config/milkMiddleware.py

    r4845 r4958  
    6060        self.globals.standalone=cf.config.getboolean('DISCOVERY','standalone') 
    6161 
    62         # NB, without this set, the default host on ndg.badc.rl.ac.uk will be used by ndgSearch 
     62        # NB, without this set, the default host on ndg.badc.rl.ac.uk will be  
     63        # used by discoveryServiceClient 
    6364        if cf.config.has_option('DISCOVERY', 'discoveryServiceURL'): 
    6465            self.globals.discoveryServiceURL = \ 
     
    6667                 
    6768        self.globals.pwFile = cf.get('NDG_EXIST','passwordFile') 
     69        localDbHostName = cf.get('NDG_EXIST','local') 
    6870        # set up the validator for atoms - to allow re-use across the app 
    69         self.globals.validator = AtomValidator(None, self.globals.pwFile, \ 
    70                                        newLineChar="<br/>", 
    71                                        isDebug = self.globals.debugAtomEditor, \ 
    72                                        loadAllCollections = True) 
     71        self.globals.validator = AtomValidator(None, self.globals.pwFile,  
     72                                               dbHostName = localDbHostName, 
     73                                               newLineChar="<br/>", 
     74                                               isDebug = self.globals.debugAtomEditor, 
     75                                               loadAllCollections = True) 
    7376 
    7477        # initialise collection to store re-usable connections to the eXist DB 
Note: See TracChangeset for help on using the changeset viewer.