summaryrefslogtreecommitdiffstats
path: root/forum/conf/settings_wrapper.py
diff options
context:
space:
mode:
Diffstat (limited to 'forum/conf/settings_wrapper.py')
-rw-r--r--forum/conf/settings_wrapper.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/forum/conf/settings_wrapper.py b/forum/conf/settings_wrapper.py
index 86d41709..b3645333 100644
--- a/forum/conf/settings_wrapper.py
+++ b/forum/conf/settings_wrapper.py
@@ -66,5 +66,12 @@ class ConfigSettings(object):
else:
self.__instance[key] = config_register(value)
+ def as_dict(self):
+ out = dict()
+ for key in self.__instance.keys():
+ #todo: this is odd that I could not use self.__instance.items() mapping here
+ out[key] = self.__instance[key].value
+ return out
+
#settings instance to be used elsewhere in the project
settings = ConfigSettings()