Ignore:
Timestamp:
04/09/08 14:40:55 (12 years ago)
Author:
cbyrom
Message:

Fix handling of ndgObject config object + refactor common code in
ndgSearch into re-usable methods + add extra logging and error
handling + extend test suite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgUtils/ndgObject.py

    r4168 r4175  
    9797        # set default return format - if not set, just return in original format 
    9898        fmt='' 
    99         if self.config.has_option('DISCOVERY','formatDefault'): 
    100             fmt=self.config.get('DISCOVERY','formatDefault') 
     99        if self.config.config.has_option('DISCOVERY','formatDefault'): 
     100            fmt=self.config.config.get('DISCOVERY','formatDefault') 
    101101            logging.info("Default discovery format set to: %s" %fmt) 
    102102             
     
    104104        # We'll build the following even if it can't be used (as would be the case for 
    105105        # a non data entity B record or an A record) because it's a useful template. 
    106         if self.schema!=fmt: qs=('outputSchema',fmt) 
     106        if self.schema!=fmt:  
     107            qs=('outputSchema',fmt) 
    107108        self.discoveryURL=self.__buildURL(discoveryBASE,[qs]) 
    108109 
     
    110111        # - if not, default to 'unknown' 
    111112        servicehost = 'unknown' 
    112         if self.config.has_option('NDG_B_SERVICE',self.repository): 
     113        if self.config.config.has_option('NDG_B_SERVICE',self.repository): 
    113114            servicehost=self.config.get('NDG_B_SERVICE',self.repository) 
    114115             
Note: See TracChangeset for help on using the changeset viewer.