summaryrefslogtreecommitdiffstats
path: root/module/plugins/AccountManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-20 14:33:11 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-20 14:33:11 +0100
commit4525215e384a1446404ef0c3909fd824720d2b2e (patch)
tree2ddf91d6e05863ffb1975fb6e93bf1c88e4a1e1a /module/plugins/AccountManager.py
parentcz hoster - update search patterns (diff)
downloadpyload-4525215e384a1446404ef0c3909fd824720d2b2e.tar.xz
automatic plugin reloader
Diffstat (limited to 'module/plugins/AccountManager.py')
-rw-r--r--module/plugins/AccountManager.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/AccountManager.py b/module/plugins/AccountManager.py
index 7e30f4817..fc521d36c 100644
--- a/module/plugins/AccountManager.py
+++ b/module/plugins/AccountManager.py
@@ -35,18 +35,19 @@ class AccountManager():
"""Constructor"""
self.core = core
+ self.lock = Lock()
+
+ self.initPlugins()
+ self.saveAccounts() # save to add categories to conf
+ def initPlugins(self):
self.accounts = {} # key = ( plugin )
self.plugins = {}
- self.lock = Lock()
self.initAccountPlugins()
-
self.loadAccounts()
- self.saveAccounts() # save to add categories to conf
- #----------------------------------------------------------------------
def getAccountPlugin(self, plugin):
"""get account instance for plugin or None if anonymous"""
if plugin in self.accounts: