summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-05-07 22:29:18 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-05-07 22:29:18 +0200
commitf746a0d9afb1fa12aad285d9363986a85b1fe6d4 (patch)
treec9910a09ecfc13d2d986cc40211ed2e6600087db /module
parentfixes (diff)
downloadpyload-f746a0d9afb1fa12aad285d9363986a85b1fe6d4.tar.xz
hook fix
Diffstat (limited to 'module')
-rw-r--r--module/HookManager.py3
-rw-r--r--module/plugins/Hook.py2
-rw-r--r--module/plugins/hooks/LinuxFileEvents.py2
3 files changed, 4 insertions, 3 deletions
diff --git a/module/HookManager.py b/module/HookManager.py
index e4cea0757..f5835bce0 100644
--- a/module/HookManager.py
+++ b/module/HookManager.py
@@ -19,6 +19,7 @@
"""
import logging
+import traceback
from threading import Lock
from module.XMLConfigParser import XMLConfigParser
@@ -45,6 +46,8 @@ class HookManager():
plugins.append(plugin)
except:
self.logger.warning(_("Failed activating %(name)s") % {"name":plugin.__name__})
+ if self.core.config['general']['debug_mode']:
+ traceback.print_exc()
self.plugins = plugins
self.lock.release()
diff --git a/module/plugins/Hook.py b/module/plugins/Hook.py
index 81188c147..45435b2f6 100644
--- a/module/plugins/Hook.py
+++ b/module/plugins/Hook.py
@@ -44,7 +44,7 @@ class Hook():
self.setup()
def setup(self):
- self.configParser.set(self.props["name"], {"option": "activated", "type": "bool", "name": "Activated"}, True)
+ self.configParser.set(self.__name__, {"option": "activated", "type": "bool", "name": "Activated"}, True)
self.readConfig()
def isActivated(self):
diff --git a/module/plugins/hooks/LinuxFileEvents.py b/module/plugins/hooks/LinuxFileEvents.py
index 44f3f00e8..f4fe12de4 100644
--- a/module/plugins/hooks/LinuxFileEvents.py
+++ b/module/plugins/hooks/LinuxFileEvents.py
@@ -30,8 +30,6 @@ class LinuxFileEvents(Hook):
def __init__(self, core):
Hook.__init__(self, core)
- props = {}
- self.props = props
return #@TODO remove when working correctly