summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/Addon.py
diff options
context:
space:
mode:
authorGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-09 20:11:11 +0200
committerGravatar Armin <Armin@Armin-PC.diedering.lan> 2015-04-09 20:11:11 +0200
commitf53d57b902b71708f05a3125872ec5d34ebe65b9 (patch)
tree2f8756396411a98331cb937e42ded87da2c9f253 /pyload/plugin/Addon.py
parentMerge remote-tracking branch 'origin/0.4.10' into 0.4.10 (diff)
downloadpyload-f53d57b902b71708f05a3125872ec5d34ebe65b9.tar.xz
fix: OboomCom and SmoozedCom with beaker >= v1.7.x
fix: run plugins this fix makes the plugin attribute "__name" obsolet
Diffstat (limited to 'pyload/plugin/Addon.py')
-rw-r--r--pyload/plugin/Addon.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/plugin/Addon.py b/pyload/plugin/Addon.py
index 14b5ee2a5..d33cdd400 100644
--- a/pyload/plugin/Addon.py
+++ b/pyload/plugin/Addon.py
@@ -98,7 +98,7 @@ class Addon(Base):
def __repr__(self):
- return "<Addon %s>" % self.__name
+ return "<Addon %s>" % self.__class__.__name__
def setup(self):
@@ -117,7 +117,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.__class__.__name__, "activated")
# Event methods - overwrite these if needed