Add '__getattr__' to CoreConfig to access the dictionary directly

This commit is contained in:
Andrew Resch 2009-04-25 00:30:11 +00:00
parent 4878743d68
commit 6d33ff9902
1 changed files with 4 additions and 0 deletions

View File

@ -51,3 +51,7 @@ class CoreConfig(component.Component):
def on_configvaluechanged_event(self, key, value):
self.config[key] = value
def __getattr__(self, attr):
# We treat this directly interacting with the dictionary
return getattr(self.config, attr)