Ignore:
Timestamp:
02/02/07 20:33:23 (13 years ago)
Author:
lawrence
Message:

Further modifications to support xml versions of displayed records in
discovery.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/PythonCode/wsgi/DIF.py

    r2097 r2098  
    121121                 helper.getText(item,'Description') )) 
    122122         
    123         if self.ndgObject is not None: 
    124             if self.ndgObject.gettable: 
    125                 self.binding=DIFService('DISCOVERY',self.ndgObject.baseURL,'Discovery record') 
     123        if self.ndgObject is None: 
     124            self.binding=None 
    126125        else: 
    127             self.binding=None 
    128          
     126            if self.ndgObject.discoveryURL is not None: 
     127                self.binding=DIFService('DISCOVERY',self.ndgObject.discoveryURL,'Discovery record') 
     128            else: self.binding=None 
     129 
    129130        if self.debug: 
    130131           f=open('difs.log','a') 
Note: See TracChangeset for help on using the changeset viewer.