name => path

This commit is contained in:
Emmanuel Garette 2018-11-16 22:34:51 +01:00
parent b0d4e1983f
commit 9bc3c7a056

View file

@ -1008,17 +1008,17 @@ class TiramisuContextOption(TiramisuContext):
def _filter(self, def _filter(self,
opt): opt):
if self._config_bag.properties: if self._config_bag.properties:
name = opt.impl_getname()
option_bag = OptionBag() option_bag = OptionBag()
path = opt.impl_getpath()
option_bag.set_option(opt, option_bag.set_option(opt,
name, path,
None, None,
self._config_bag) self._config_bag)
if opt.impl_is_optiondescription(): if opt.impl_is_optiondescription():
self._config_bag.context.cfgimpl_get_settings().validate_properties(option_bag) self._config_bag.context.cfgimpl_get_settings().validate_properties(option_bag)
else: else:
self._config_bag.context.getattr(name, self._config_bag.context.getattr(path,
option_bag) option_bag)
def _walk(self, def _walk(self,
option, option,
recursive, recursive,