summaryrefslogtreecommitdiffstats
path: root/module/plugins/Hook.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-07-29 17:05:45 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-07-29 17:05:45 +0200
commit252cf9964a2ebc78a589f75db2a7be0d25cac512 (patch)
tree0f4cd1a7949f8a3dc87eaed35f248170ee421943 /module/plugins/Hook.py
parentmany new stuff, some things already working (diff)
downloadpyload-252cf9964a2ebc78a589f75db2a7be0d25cac512.tar.xz
more improvements and cleaned some imports
Diffstat (limited to 'module/plugins/Hook.py')
-rw-r--r--module/plugins/Hook.py29
1 files changed, 8 insertions, 21 deletions
diff --git a/module/plugins/Hook.py b/module/plugins/Hook.py
index 45435b2f6..ed62cbdb2 100644
--- a/module/plugins/Hook.py
+++ b/module/plugins/Hook.py
@@ -18,7 +18,6 @@
@interface-version: 0.2
"""
-import logging
class Hook():
@@ -26,26 +25,17 @@ class Hook():
__version__ = "0.2"
__type__ = "hook"
__description__ = """interface for hook"""
- __author_name__ = ("mkaay")
- __author_mail__ = ("mkaay@mkaay.de")
+ __author_name__ = ("mkaay", "RaNaN")
+ __author_mail__ = ("mkaay@mkaay.de", "RaNaN@pyload.org")
def __init__(self, core):
- self.logger = logging.getLogger("log")
- self.configParser = core.parser_plugins
- self.config = {}
- self.core = core
-
- def readConfig(self):
- self.configParser.loadData()
- section = self.__name__
- try:
- self.config = self.configParser.getConfig()[section]
- except:
- self.setup()
-
+ self.core = core
+ self.log = core.log
+
+ self.setup()
+
def setup(self):
- self.configParser.set(self.__name__, {"option": "activated", "type": "bool", "name": "Activated"}, True)
- self.readConfig()
+ pass
def isActivated(self):
return self.config["activated"]
@@ -60,9 +50,6 @@ class Hook():
pass
def packageFinished(self, pypack):
- """
- not implemented!
- """
pass
def beforeReconnecting(self, ip):