diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-27 17:07:33 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-27 17:07:33 +0200 |
commit | a33d8062833d1bfec4777145cc484c1d6b9e141f (patch) | |
tree | 7d815f80cdcced2d36144b9b71760278d29ed007 /module/AccountManager.py | |
parent | locale fixes (diff) | |
download | pyload-a33d8062833d1bfec4777145cc484c1d6b9e141f.tar.xz |
some automatic fixes
Diffstat (limited to 'module/AccountManager.py')
-rw-r--r-- | module/AccountManager.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/module/AccountManager.py b/module/AccountManager.py index fc122e760..c6c14daf7 100644 --- a/module/AccountManager.py +++ b/module/AccountManager.py @@ -29,28 +29,28 @@ class AccountManager(): #---------------------------------------------------------------------- def __init__(self, core): """Constructor""" - + self.core = core - + self.accounts = {} # key = ( plugin ) self.plugins = {} - + 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 self.accounts.has_key(plugin): if not self.plugins.has_key(plugin): self.plugins[plugin] = self.core.pluginManager.getAccountPlugin(plugin)(self, self.accounts[plugin]) - + return self.plugins[plugin] else: return None - + def getAccountPlugins(self): """ get all account instances""" |