summaryrefslogtreecommitdiffstats
path: root/module/AccountManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-02 23:22:33 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-02 23:22:33 +0200
commitb642f147c006366ed039b533d212b6c3e2c19a44 (patch)
tree7dc22fd673eb4525283be6a172d8c5947915b51a /module/AccountManager.py
parentformated output (diff)
downloadpyload-b642f147c006366ed039b533d212b6c3e2c19a44.tar.xz
fixes
Diffstat (limited to 'module/AccountManager.py')
-rw-r--r--module/AccountManager.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/module/AccountManager.py b/module/AccountManager.py
index 6fdc7864d..0ca3c75a8 100644
--- a/module/AccountManager.py
+++ b/module/AccountManager.py
@@ -142,9 +142,10 @@ class AccountManager():
if self.accounts.has_key(plugin):
p = self.getAccountPlugin(plugin)
p.updateAccounts(user, password, options)
+ #since accounts is a ref in plugin self.accounts doesnt need to be updated here
self.saveAccounts()
- self.getAccountInfos(force=True)
+ p.getAllAccounts(force=True)
#----------------------------------------------------------------------
def removeAccount(self, plugin, user):
@@ -153,12 +154,9 @@ class AccountManager():
if self.accounts.has_key(plugin):
p = self.getAccountPlugin(plugin)
p.removeAccount(user)
-
- if self.accounts[plugin].has_key(user):
- del self.accounts[plugin][user]
-
+
self.saveAccounts()
- self.getAccountInfos(force=True)
+ p.getAllAccounts(force=True)
def getAccountInfos(self, force=False):
data = {}