summaryrefslogtreecommitdiffstats
path: root/module/HookManager.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/HookManager.py
parentmany new stuff, some things already working (diff)
downloadpyload-252cf9964a2ebc78a589f75db2a7be0d25cac512.tar.xz
more improvements and cleaned some imports
Diffstat (limited to 'module/HookManager.py')
-rw-r--r--module/HookManager.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/HookManager.py b/module/HookManager.py
index 2d81d87b3..96815ef63 100644
--- a/module/HookManager.py
+++ b/module/HookManager.py
@@ -18,7 +18,6 @@
@interface-version: 0.1
"""
-import logging
import traceback
from threading import RLock
@@ -47,11 +46,13 @@ class HookManager():
plugins = []
for pluginClass in self.core.pluginManager.getHookPlugins():
try:
+ #hookClass = getattr(plugin, plugin.__name__)
+ #@TODO config parsing and deactivating
plugin = pluginClass(self.core)
- plugin.readConfig()
plugins.append(plugin)
+ self.log.info(_("%s activated") % pluginClass.__name__)
except:
- #self.log.warning(_("Failed activating %(name)s") % {"name":plugin.__name__})
+ self.log.warning(_("Failed activating %(name)s") % {"name":pluginClass.__name__})
if self.core.debug:
traceback.print_exc()