add path to config
This commit is contained in:
@ -1167,6 +1167,9 @@ class _TiramisuContextConfig(TiramisuContext, _TiramisuContextConfigReset):
|
||||
def metaconfig(self):
|
||||
return Config(self._config_bag.context.cfgimpl_get_meta())
|
||||
|
||||
def path(self):
|
||||
return self._config_bag.context.cfgimpl_get_path()
|
||||
|
||||
|
||||
class _TiramisuContextGroupConfig(TiramisuContext):
|
||||
"""Actions to GroupConfig"""
|
||||
@ -1198,6 +1201,9 @@ class _TiramisuContextGroupConfig(TiramisuContext):
|
||||
config = config.getconfig(spath)
|
||||
return Config(config)
|
||||
|
||||
def path(self):
|
||||
return self._config_bag.context.cfgimpl_get_path()
|
||||
|
||||
|
||||
class _TiramisuContextMixConfig(_TiramisuContextGroupConfig, _TiramisuContextConfigReset):
|
||||
"""Actions to MixConfig"""
|
||||
|
@ -618,7 +618,9 @@ class _CommonConfig(SubConfig):
|
||||
descr.impl_build_force_store_values(config_bag)
|
||||
|
||||
def cfgimpl_get_path(self, dyn=True):
|
||||
return None
|
||||
if self._impl_meta is None or self._impl_meta() is None:
|
||||
return self._impl_name
|
||||
return self._impl_meta().cfgimpl_get_path() + '.' + self._impl_name
|
||||
|
||||
def cfgimpl_get_meta(self):
|
||||
if self._impl_meta is not None:
|
||||
|
Reference in New Issue
Block a user