summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py12
1 files changed, 5 insertions, 7 deletions
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)