mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 00:48:41 +00:00
Add '__getattr__' to CoreConfig to access the dictionary directly
This commit is contained in:
parent
4878743d68
commit
6d33ff9902
1 changed files with 4 additions and 0 deletions
|
@ -51,3 +51,7 @@ class CoreConfig(component.Component):
|
||||||
|
|
||||||
def on_configvaluechanged_event(self, key, value):
|
def on_configvaluechanged_event(self, key, value):
|
||||||
self.config[key] = value
|
self.config[key] = value
|
||||||
|
|
||||||
|
def __getattr__(self, attr):
|
||||||
|
# We treat this directly interacting with the dictionary
|
||||||
|
return getattr(self.config, attr)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue