Ignore:
Timestamp:
01/10/08 14:00:41 (11 years ago)
Author:
cbyrom
Message:

Add ability to set the discovery service URL from the ndgDiscovery.config
file + remove unused 'layoutdir' config property.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/config/ndgMiddleware.py

    r4211 r4259  
    5252        self.globals.server=cf.get('DEFAULT','server','') 
    5353 
    54          
    5554        # for standalone discovery 
    56         self.globals.standalone=cf.config.getboolean('DISCOVERY','standalone')        
     55        self.globals.standalone=cf.config.getboolean('DISCOVERY','standalone') 
     56 
     57        # NB, without this set, the default host on ndg.badc.rl.ac.uk will be used by ndgSearch 
     58        if cf.config.has_option('DISCOVERY', 'discoveryServiceURL'): 
     59            self.globals.discoveryServiceURL = \ 
     60                cf.config.get('DISCOVERY', 'discoveryServiceURL')        
    5761 
    5862         
Note: See TracChangeset for help on using the changeset viewer.