Changeset 1151


Ignore:
Timestamp:
09/06/06 22:08:05 (13 years ago)
Author:
lawrence
Message:

Minor additions to support service binding in browse
interface.

Location:
TI07-MOLES/trunk/StubB/XSLT/browse/portal
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/StubB/XSLT/browse/portal/cgi/ServiceBinding.py

    r1150 r1151  
    5151        an NDG-A type identifier should expect the NDG-A-Service running at the 
    5252        specific repository ''' 
    53         def __init__(self,n='',nativeID=None): 
     53        def __init__(self,n='',nativeID=None,serviceFile='cgi/serviceMap.config'): 
    5454            Service.__init__(self) 
    5555            # regrettably we used different things in our ID's than we did in 
    5656            # our difs : 
    5757            self.mapping={'NDG-A0':'NDG_A_Service','NDG-B0':'NDG_B_Service'} 
    58             self.serviceMap=ServiceMap() 
     58            self.serviceMap=ServiceMap(serviceFile=serviceFile) 
    5959            self.name=n 
    6060            if nativeID is not None: self.native(nativeID)  
     
    109109            </dataModelID>''' 
    110110        idelem=ET.fromstring(s) 
    111         n=ServiceBinding('macehead',nativeID=idelem) 
     111        n=ServiceBinding('macehead',nativeID=idelem,serviceFile='serviceMap.config') 
    112112        maceheadServices=[n] 
    113113        s='''<dummy><Related_URL> 
     
    126126        stuff=ET.fromstring(s) 
    127127        for x in stuff.findall('Related_URL'): 
    128             n=ServiceBinding('macehead') 
     128            n=ServiceBinding('macehead',serviceFile='serviceMap.config') 
    129129            maceheadServices.append(n.related(x,idelem)) 
    130130        for i in maceheadServices:  
Note: See TracChangeset for help on using the changeset viewer.