From e655d860882fff63160098f063fc3e4c9b8c0ba5 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 12 Aug 2010 19:42:46 +0200 Subject: web if acc settings --- pyLoadCore.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index db46571d5..0c28b4a1b 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -611,20 +611,18 @@ class ServerMethods(): return self.core.pullManager.getEvents(uuid) def get_accounts(self): - plugins = self.core.pluginManager.getAccountPlugins() - data = [] + plugins = self.core.accountManager.getAccountPlugins() + data = {} for p in plugins: - data.extend(p.getAllAccounts()) + data[p.__name__] = p.getAllAccounts() return data def update_account(self, plugin, account, password, options=[]): """ create and update account """ - plugins = self.core.pluginManager.getAccountPlugins() - self.core.pluginManager.updateAccount(plugin, account, password, options) + self.core.accountManager.updateAccount(plugin, account, password, options) def remove_account(self, plugin, account): - plugins = self.core.pluginManager.getAccountPlugins() - self.core.pluginManager.removeAccount(plugin, account) + self.core.accountManager.removeAccount(plugin, account) def set_priority(self, id, priority): p = self.core.files.getPackage(id) -- cgit v1.2.3