diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-02-16 22:38:45 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-02-16 22:38:45 +0100 |
commit | 270c1ee85edcd1e9e10511833b422d93dfca192a (patch) | |
tree | eb846081ba3ec09721879ee237016b26d19c3c2f /pyload/plugin/Addon.py | |
parent | Fix plugins to work on 0.4.10 (diff) | |
download | pyload-270c1ee85edcd1e9e10511833b422d93dfca192a.tar.xz |
Diffstat (limited to 'pyload/plugin/Addon.py')
-rw-r--r-- | pyload/plugin/Addon.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pyload/plugin/Addon.py b/pyload/plugin/Addon.py index 3525d4e4d..dc07a2513 100644 --- a/pyload/plugin/Addon.py +++ b/pyload/plugin/Addon.py @@ -23,15 +23,15 @@ def threaded(fn): class Addon(Base): - __name__ = "Addon" - __type__ = "addon" - __version__ = "0.01" + __name = "Addon" + __type = "addon" + __version = "0.01" - __config__ = [] #: [("name", "type", "desc", "default")] + __config = [] #: [("name", "type", "desc", "default")] - __description__ = """Base addon plugin""" - __license__ = "GPLv3" - __authors__ = [("mkaay", "mkaay@mkaay.de"), + __description = """Base addon plugin""" + __license = "GPLv3" + __authors = [("mkaay", "mkaay@mkaay.de"), ("RaNaN", "RaNaN@pyload.org")] @@ -100,7 +100,7 @@ class Addon(Base): def __repr__(self): - return "<Addon %s>" % self.__name__ + return "<Addon %s>" % self.__name def setup(self): @@ -119,7 +119,7 @@ class Addon(Base): def isActivated(self): """ checks if addon is activated""" - return self.core.config.getPlugin(self.__name__, "activated") + return self.core.config.getPlugin(self.__name, "activated") # Event methods - overwrite these if needed |