From 6d33ff99027dd4d2c332563f31ad7d29d6c3fc78 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 25 Apr 2009 00:30:11 +0000 Subject: [PATCH] Add '__getattr__' to CoreConfig to access the dictionary directly --- deluge/ui/coreconfig.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deluge/ui/coreconfig.py b/deluge/ui/coreconfig.py index 6a2a7e849..aa60e51d8 100644 --- a/deluge/ui/coreconfig.py +++ b/deluge/ui/coreconfig.py @@ -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)