Ignore:
Timestamp:
01/10/08 14:00:41 (12 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/controllers/discovery.py

    r4198 r4259  
    141141        if self.inputs['searchTarget']=='Discovery': 
    142142            logging.info(" - use Discovery service to complete search") 
    143             ws=ndgSearch() 
     143            url = None 
     144            if hasattr(g, 'discoveryServiceURL'): 
     145                url = g.discoveryServiceURL 
     146            ws=ndgSearch(HostAndPort=url) 
    144147        elif self.inputs['searchTarget'] in ['Browse','NumSim']: 
    145148            logging.info(" - use Browse service to complete search") 
     
    247250            else: 
    248251                c.difs=difs 
    249                  
    250252                session['results']=h.current_url() 
    251253                session.save() 
Note: See TracChangeset for help on using the changeset viewer.