summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-rw-r--r--conf/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/conf/__init__.py b/conf/__init__.py
index 0af47adb..46228235 100644
--- a/conf/__init__.py
+++ b/conf/__init__.py
@@ -49,6 +49,12 @@ class Settings(object):
# we can assume all uppercase keys are valid settings
super(Settings, self).__setattr__(name, value)
+ def setValue(self, name, value):
+ """Set a value
+ """
+ if name is not None and value is not None:
+ super(Settings, self).__setattr__(name, value)
+
def load_from_file(self, path):
"""Update ``settings`` with values found in module at ``path``.
"""