config.reset() remove informations too

This commit is contained in:
2018-09-09 23:04:36 +02:00
parent 3d07a9e88f
commit 5b518bffea
2 changed files with 6 additions and 3 deletions

View File

@ -991,9 +991,6 @@ class TiramisuContextConfig(TiramisuContext):
def _c_meta(self):
return Config(self.config_bag.context.cfgimpl_get_meta())
def _c_reset(self):
pass
def _m_new(self, name):
return Config(self.config_bag.context.new_config(name))
@ -1010,6 +1007,8 @@ class TiramisuContextConfig(TiramisuContext):
def _c_reset(self):
# Option's values
self.config_bag.context.cfgimpl_get_values()._p_.importation((tuple(), tuple(), tuple(), tuple()))
# Option's informations
self.config_bag.context.cfgimpl_get_values()._p_.del_informations()
# Option's properties
self.config_bag.context.cfgimpl_get_settings()._p_.importation({})
# Option's permissives