summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Addon.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-22 03:01:08 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-22 03:01:08 +0200
commit28e340d990bfb33d4e3cacda95145761abffc462 (patch)
tree96b2cd4202fc65985488d1f21f0b5e76cfae1fa3 /module/plugins/internal/Addon.py
parent[MultiHoster] Fix get_info (diff)
downloadpyload-28e340d990bfb33d4e3cacda95145761abffc462.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/internal/Addon.py')
-rw-r--r--module/plugins/internal/Addon.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/module/plugins/internal/Addon.py b/module/plugins/internal/Addon.py
index e6de50aaa..ee0febffc 100644
--- a/module/plugins/internal/Addon.py
+++ b/module/plugins/internal/Addon.py
@@ -23,7 +23,7 @@ class Addon(Plugin):
__name__ = "Addon"
__type__ = "hook" #@TODO: Change to `addon` in 0.4.10
__version__ = "0.14"
- __status__ = "testing"
+ __status__ = "stable"
__threaded__ = [] #@TODO: Remove in 0.4.10
@@ -58,6 +58,14 @@ class Addon(Plugin):
self.init_events()
+ @property
+ def activated(self):
+ """
+ Checks if addon is activated
+ """
+ return self.get_config("activated")
+
+
#@TODO: Remove in 0.4.10
def _log(self, level, plugintype, pluginname, messages):
plugintype = "addon" if plugintype is "hook" else plugintype
@@ -131,14 +139,6 @@ class Addon(Plugin):
raise NotImplementedError
- @property
- def activated(self):
- """
- Checks if addon is activated
- """
- return self.get_config("activated")
-
-
#: Deprecated method, use `activated` property instead (Remove in 0.4.10)
def isActivated(self, *args, **kwargs):
return self.activated