summaryrefslogtreecommitdiff
path: root/lib/utils/dotdict.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/dotdict.py')
-rw-r--r--lib/utils/dotdict.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/utils/dotdict.py b/lib/utils/dotdict.py
index 1ab3a4fe..76f23697 100644
--- a/lib/utils/dotdict.py
+++ b/lib/utils/dotdict.py
@@ -6,7 +6,13 @@ class DotDict(dict):
def __init__(self, *args, **kwargs):
super(DotDict, self).__init__(*args, **kwargs)
+ self._dotdictify()
+ def update(self, *args, **kwargs):
+ super(DotDict, self).update(*args, **kwargs)
+ self.dotdictify()
+
+ def _dotdictify(self):
for k, v in self.iteritems():
if isinstance(v, dict):
self[k] = DotDict(v)