add context property force_store_value
This commit is contained in:
@ -170,10 +170,12 @@ class CacheOptionDescription(BaseOption):
|
||||
|
||||
def impl_build_force_store_values(self,
|
||||
config_bag: ConfigBag) -> None:
|
||||
commit = False
|
||||
if not hasattr(self, '_cache_force_store_values'):
|
||||
raise ConfigError(_('option description seems to be part of an other '
|
||||
'config'))
|
||||
if 'force_store_value' not in config_bag.properties:
|
||||
return
|
||||
commit = False
|
||||
values = config_bag.context.cfgimpl_get_values()
|
||||
for subpath, option in self._cache_force_store_values:
|
||||
if not values._p_.hasvalue(subpath):
|
||||
|
Reference in New Issue
Block a user