diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-11-20 14:33:11 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-11-20 14:33:11 +0100 |
commit | 4525215e384a1446404ef0c3909fd824720d2b2e (patch) | |
tree | 2ddf91d6e05863ffb1975fb6e93bf1c88e4a1e1a /module/plugins/AccountManager.py | |
parent | cz hoster - update search patterns (diff) | |
download | pyload-4525215e384a1446404ef0c3909fd824720d2b2e.tar.xz |
automatic plugin reloader
Diffstat (limited to 'module/plugins/AccountManager.py')
-rw-r--r-- | module/plugins/AccountManager.py | 9 |
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: |