Changeset 4484
- Timestamp:
- 24/11/08 10:04:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
exist/trunk/python/ndgUtils/ndgObject.py
r4483 r4484 106 106 107 107 # set default return format - if not set, just return in original format 108 fmt = self.config.get('DISCOVERY','formatDefault') 109 if fmt: 108 fmt='' 109 if self.config.has_option('DISCOVERY','formatDefault'): 110 fmt = self.config.get('DISCOVERY','formatDefault') 110 111 logging.info("Default discovery format set to: %s" %fmt) 111 112 … … 119 120 # config file should have details on the service to use for the repository 120 121 # - if not, default to 'unknown' 121 servicehost = self.config.get('NDG_B_SERVICE',self.repository)122 if not servicehost:123 servicehost = '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) 124 125 125 126 # 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.