MCPcopy Index your code
hub / github.com/pyload/pyload / getAccountPlugin

Method getAccountPlugin

module/plugins/AccountManager.py:51–63  ·  view source on GitHub ↗

get account instance for plugin or None if anonymous

(self, plugin)

Source from the content-addressed store, hash-verified

49
50
51 def getAccountPlugin(self, plugin):
52 """get account instance for plugin or None if anonymous"""
53 if plugin in self.accounts:
54 if plugin not in self.plugins:
55 klass = self.core.pluginManager.loadClass("accounts", plugin)
56 if klass:
57 self.plugins[plugin] = klass(self, self.accounts[plugin])
58 else:
59 return None
60
61 return self.plugins[plugin]
62 else:
63 return None
64
65 def getAccountPlugins(self):
66 """ get all account instances"""

Callers 8

getAccountPluginsMethod · 0.95
updateAccountMethod · 0.95
removeAccountMethod · 0.95
getAccountInfosMethod · 0.95
__init__Method · 0.80
addMethod · 0.80
load_accountMethod · 0.80
decryptMethod · 0.80

Calls 1

loadClassMethod · 0.80

Tested by

no test coverage detected