diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-12 11:47:23 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-12 11:47:23 +0200 |
commit | 46bac1946a3d3f8346517e9a42da457646074c44 (patch) | |
tree | 2b572a2af0852bbb03c2cd372457772d8ee5a3ae /pyLoadCore.py | |
parent | renaming fix, get job by priority (diff) | |
download | pyload-46bac1946a3d3f8346517e9a42da457646074c44.tar.xz |
account fixes
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 14 |
1 files changed, 4 insertions, 10 deletions
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) |