summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-02-20 23:11:33 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-02-20 23:11:33 +0100
commit14ecf91716fd403922b44567d75d4cbe3abea617 (patch)
tree9f101dbedd74b9f19c7c187114ffd6fcab7e19fa /module/plugins
parentfixed showing files after deletion of package (diff)
downloadpyload-14ecf91716fd403922b44567d75d4cbe3abea617.tar.xz
parse category from addons
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/Addon.py4
-rw-r--r--module/plugins/Base.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/Addon.py b/module/plugins/Addon.py
index 8b4430672..ff9c57bef 100644
--- a/module/plugins/Addon.py
+++ b/module/plugins/Addon.py
@@ -145,7 +145,6 @@ class Addon(Base):
self.cb = self.core.scheduler.addJob(self.interval, self._periodical, threaded=False)
-
def __repr__(self):
return "<Addon %s>" % self.__name__
@@ -153,6 +152,9 @@ class Addon(Base):
""" checks if addon is activated"""
return True if self.__internal__ else self.getConfig("activated")
+ def getCategory(self):
+ return self.core.pluginManager.getCategory(self.__name__)
+
def init(self):
pass
diff --git a/module/plugins/Base.py b/module/plugins/Base.py
index 9bfeaba4b..cc327f861 100644
--- a/module/plugins/Base.py
+++ b/module/plugins/Base.py
@@ -58,7 +58,7 @@ class Base(object):
__description__ = """"""
#: List of needed modules
__dependencies__ = tuple()
- #: Used to assign a category to addon plugins
+ #: Used to assign a category for addon plugins
__category__ = ""
#: Tags to categorize the plugin, see documentation for further info
__tags__ = tuple()