mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
Add '__getattr__' to CoreConfig to access the dictionary directly
This commit is contained in:
parent
4878743d68
commit
6d33ff9902
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user