handle deletions in the top layer

This commit is contained in:
Jakob Ketterl
2021-02-24 23:04:57 +01:00
parent 0c1dc70217
commit bccb87e660
2 changed files with 24 additions and 0 deletions

View File

@@ -37,3 +37,7 @@ class Config(PropertyStack):
def __setitem__(self, key, value):
# in the config, all writes go to the json layer
return self.storableConfig.__setitem__(key, value)
def __delitem__(self, key):
# all deletes go to the json layer, too
return self.storableConfig.__delitem__(key)