diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-23 12:15:56 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-12-23 12:15:56 +0100 |
commit | f852c362fc6283246a9f9e690c456dd3fd245c29 (patch) | |
tree | 93eb5751938cdb4b668fcdeddba9231a8038b4b5 /module/plugins | |
parent | accountmanager v2, delete your accounts.conf and re-enter them in pyload, (diff) | |
download | pyload-f852c362fc6283246a9f9e690c456dd3fd245c29.tar.xz |
closed #473
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/PluginManager.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/module/plugins/PluginManager.py b/module/plugins/PluginManager.py index 5c31930a5..18dea7699 100644 --- a/module/plugins/PluginManager.py +++ b/module/plugins/PluginManager.py @@ -309,18 +309,13 @@ class PluginManager: module = self.loadModule(type, name) if module: return getattr(module, name) - def hasAccountPlugin(self, plugin): - return plugin in self.plugins["accounts"] - - def getAccountPlugins(self): - """return list of account plugin names""" - return self.plugins["accounts"].keys() - def injectPlugin(self, type, name, module, new_name): + """ Overwrite a plugin with a other module. used by Multihoster """ self.modules[(type, name)] = module self.names[(type, name)] = new_name def restoreState(self, type, name): + """ Restore the state of a plugin after injecting """ if (type, name) in self.modules: del self.modules[(type, name)] if (type, name) in self.names: |