From 46bac1946a3d3f8346517e9a42da457646074c44 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 12 Aug 2010 11:47:23 +0200 Subject: account fixes --- pyLoadCore.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index 0f6cc4268..94ffd90a4 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -616,20 +616,14 @@ class ServerMethods(): data.extend(p.getAllAccounts()) return data - def update_account(self, plugin, account, password): + def update_account(self, plugin, account, password, options=[]): """ create and update account """ plugins = self.core.pluginManager.getAccountPlugins() - for p in plugins: - if p.__name__ == plugin: - p.updateAccount(account, password) - break + self.core.pluginManager.updateAccount(plugin, account, password, options) - def remove_account(self, plugin, account, password): + def remove_account(self, plugin, account): plugins = self.core.pluginManager.getAccountPlugins() - for p in plugins: - if p.__name__ == plugin: - p.removeAccount(account, password) - break + self.core.pluginManager.removeAccount(plugin, account) def set_priority(self, id, priority): p = self.core.files.getPackage(id) -- cgit v1.2.3