Author: andar
Revision: 5163
Log:
Add '__getattr__' to CoreConfig to access the dictionary directly
Diff:
Modified: trunk/deluge/ui/coreconfig.py
===================================================================
--- trunk/deluge/ui/coreconfig.py 2009-04-24 22:53:02 UTC (rev 5162)
+++ trunk/deluge/ui/coreconfig.py 2009-04-25 00:30:11 UTC (rev 5163)
@@ -51,3 +51,7 @@
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)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---