add a get method to the config object

This commit is contained in:
Alfredo Deza
2011-11-20 13:48:18 -05:00
parent d2267aa052
commit 1cf81d85b2

View File

@@ -49,6 +49,11 @@ class Config(object):
else:
self[k] = conf_dict[k]
def get(self, attribute):
try:
return self[attribute]
except KeyError:
return None
def __dictify__(self, obj, prefix):
'''