diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-01 18:40:51 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-01 18:40:51 +0200 |
commit | 9f6430ca71dedf9ac0f1ad527a3c3ae2bd1f351a (patch) | |
tree | f68d03873b5d7612ef3b90af5bcbeab82e57ff8e /module/PluginManager.py | |
parent | Netload.In fix (diff) | |
download | pyload-9f6430ca71dedf9ac0f1ad527a3c3ae2bd1f351a.tar.xz |
ocr + db fix
Diffstat (limited to 'module/PluginManager.py')
-rw-r--r-- | module/PluginManager.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/module/PluginManager.py b/module/PluginManager.py index 7ed7d3788..db746975a 100644 --- a/module/PluginManager.py +++ b/module/PluginManager.py @@ -191,12 +191,13 @@ class PluginManager(): """return captcha modul if existent""" if self.captchaPlugins.has_key(name): plugin = self.captchaPlugins[name] - if plugin.has_key("module"): - return plugin["module"] + if plugin.has_key("class"): + return plugin["class"] - plugin["module"] = __import__(plugin["path"], globals(), locals(), [plugin["name"]] , -1) + module = __import__(plugin["path"], globals(), locals(), [plugin["name"]] , -1) + plugin["class"] = getattr(module, name) - return plugin["module"] + return plugin["class"] return None #---------------------------------------------------------------------- |