Ignore:
Timestamp:
24/11/08 17:15:57 (12 years ago)
Author:
cbyrom
Message:

Further restructure of codebase - moving datamodels into ndgUtils to allow reuse + create visualise and browse sub structures to better
organise related code. Separate out some inner classes into their own
modules to make more visible.

File:
1 edited

Legend:

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

    r4484 r4487  
    106106 
    107107        # set default return format - if not set, just return in original format 
    108         fmt='' 
    109         if self.config.has_option('DISCOVERY','formatDefault'): 
    110             fmt = self.config.get('DISCOVERY','formatDefault') 
    111             logging.info("Default discovery format set to: %s" %fmt) 
     108        fmt = self.config.get('DISCOVERY','formatDefault') 
     109        logging.info("Default discovery format set to: %s" %fmt) 
    112110             
    113111        self.BURL=None 
     
    120118        # config file should have details on the service to use for the repository 
    121119        # - if not, default to 'unknown' 
    122         servicehost = 'unknown' 
    123         if self.config.has_option('NDG_B_SERVICE',self.repository): 
    124                 servicehost = self.config.get('NDG_B_SERVICE',self.repository) 
     120        servicehost = self.config.get('NDG_B_SERVICE',self.repository) 
     121        if not servicehost: 
     122            servicehost = 'unknown' 
    125123             
    126124        # If this record is itself a discovery record, then we don't have much more to do 
Note: See TracChangeset for help on using the changeset viewer.