None is an available value for an auto
This commit is contained in:
parent
098df1ba76
commit
ca277657e5
|
@ -205,6 +205,7 @@ class Config(object):
|
||||||
else:
|
else:
|
||||||
if owner == 'fill':
|
if owner == 'fill':
|
||||||
return value
|
return value
|
||||||
|
# ______________________________________________________________
|
||||||
result = special_owner_factory(name, owner,
|
result = special_owner_factory(name, owner,
|
||||||
value=value,
|
value=value,
|
||||||
callback=opt_or_descr.getcallback(),
|
callback=opt_or_descr.getcallback(),
|
||||||
|
@ -216,7 +217,7 @@ class Config(object):
|
||||||
if type(result) == list:
|
if type(result) == list:
|
||||||
raise ConfigError('invalid calculated value returned'
|
raise ConfigError('invalid calculated value returned'
|
||||||
' for option {0} : shall not be a list'.format(name))
|
' for option {0} : shall not be a list'.format(name))
|
||||||
if not opt_or_descr._validate(result):
|
if result != None and not opt_or_descr._validate(result):
|
||||||
raise ConfigError('invalid calculated value returned'
|
raise ConfigError('invalid calculated value returned'
|
||||||
' for option {0}'.format(name))
|
' for option {0}'.format(name))
|
||||||
|
|
||||||
|
@ -232,6 +233,7 @@ class Config(object):
|
||||||
else:
|
else:
|
||||||
_result = result
|
_result = result
|
||||||
return _result
|
return _result
|
||||||
|
# ______________________________________________________________
|
||||||
# mandatory options
|
# mandatory options
|
||||||
if not isinstance(opt_or_descr, OptionDescription):
|
if not isinstance(opt_or_descr, OptionDescription):
|
||||||
homeconfig = self._cfgimpl_get_toplevel()
|
homeconfig = self._cfgimpl_get_toplevel()
|
||||||
|
|
Loading…
Reference in New Issue