From 2d9f39522b550008a3d5d3162136a712a6e9220f Mon Sep 17 00:00:00 2001 From: mkaay Date: Mon, 6 Sep 2010 19:45:03 +0200 Subject: recheck fix, account update fix --- module/AccountManager.py | 4 +++- module/FileDatabase.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/module/AccountManager.py b/module/AccountManager.py index b5c89dffc..9234f367d 100644 --- a/module/AccountManager.py +++ b/module/AccountManager.py @@ -140,7 +140,7 @@ class AccountManager(): #---------------------------------------------------------------------- def updateAccount(self, plugin , user, password, options): """add or update account""" - + print accounts if self.accounts.has_key(plugin): p = self.getAccountPlugin(plugin) p.updateAccounts(user, password, options) @@ -152,6 +152,7 @@ class AccountManager(): self.accounts[plugin][user] = {"password": password, "options": options} self.saveAccounts() + self.getAccountInfos(force=True) #---------------------------------------------------------------------- def removeAccount(self, plugin, user): @@ -165,6 +166,7 @@ class AccountManager(): del self.accounts[plugin][user] self.saveAccounts() + self.getAccountInfos(force=True) def getAccountInfos(self, force=False): if not self.cachedAccountInfo: diff --git a/module/FileDatabase.py b/module/FileDatabase.py index d4f28d887..9d52396ae 100644 --- a/module/FileDatabase.py +++ b/module/FileDatabase.py @@ -462,7 +462,7 @@ class FileHandler: urls = [] for pyfile in data.itervalues(): - if pyfile.status not in (0, 12, 13): + if pyfile["status"] not in (0, 12, 13): urls.append((pyfile["url"], pyfile["plugin"])) self.core.threadManager.createInfoThread(urls, pid) -- cgit v1.2.3