summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-12 19:42:46 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-12 19:42:46 +0200
commite655d860882fff63160098f063fc3e4c9b8c0ba5 (patch)
treee05cbf8628841a64952d294663bd263c19d2bbcd /pyLoadCore.py
parentmerge (diff)
downloadpyload-e655d860882fff63160098f063fc3e4c9b8c0ba5.tar.xz
web if acc settings
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)