##// END OF EJS Templates
configitems: get default values from the central registry when available...
marmoute -
r32985:28a65fd4 default
parent child Browse files
Show More
@@ -439,11 +439,17 b' class ui(object):'
439 return self._data(untrusted).source(section, name)
439 return self._data(untrusted).source(section, name)
440
440
441 def config(self, section, name, default=_unset, untrusted=False):
441 def config(self, section, name, default=_unset, untrusted=False):
442 if default is _unset:
443 default = None
444 if isinstance(name, list):
442 if isinstance(name, list):
445 alternates = name
443 alternates = name
444 # let us ignore the config items in the alternates case for now
445 if default is _unset:
446 default = None
446 else:
447 else:
448 if default is _unset:
449 default = None
450 item = self._knownconfig.get(section, {}).get(name)
451 if item is not None:
452 default = item.default
447 alternates = [name]
453 alternates = [name]
448
454
449 for n in alternates:
455 for n in alternates:
General Comments 0
You need to be logged in to leave comments. Login now