From efee017fb2b3a4cac09233cd01d816d9100a5db5 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 25 May 2011 20:37:32 +0200 Subject: rehost plugin, fixed some account management issues --- module/plugins/AccountManager.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'module/plugins/AccountManager.py') diff --git a/module/plugins/AccountManager.py b/module/plugins/AccountManager.py index 7299ff643..e4c858a43 100644 --- a/module/plugins/AccountManager.py +++ b/module/plugins/AccountManager.py @@ -143,12 +143,11 @@ class AccountManager(): """add or update account""" if self.accounts.has_key(plugin): p = self.getAccountPlugin(plugin) - p.updateAccounts(user, password, options) + updated = p.updateAccounts(user, password, options) #since accounts is a ref in plugin self.accounts doesnt need to be updated here self.saveAccounts() - p.getAllAccounts(force=True) - self.core.scheduler.addJob(0, self.core.accountManager.getAccountInfos) + if updated: p.scheduleRefresh(user, force=False) #---------------------------------------------------------------------- def removeAccount(self, plugin, user): @@ -159,8 +158,6 @@ class AccountManager(): p.removeAccount(user) self.saveAccounts() - p.getAllAccounts(force=True) - self.core.scheduler.addJob(0, self.core.accountManager.getAccountInfos) def getAccountInfos(self, force=True, refresh=False): -- cgit v1.2.3