summaryrefslogtreecommitdiffstats
path: root/module/api/AccountApi.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-31 13:11:58 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-31 13:11:58 +0200
commit53bc0477f9b0217c87676103361b1633e9b12f19 (patch)
treec6461ab1c292b39e49e1a5924b75761b588b25ba /module/api/AccountApi.py
parentseparate addon and plugin configs (diff)
downloadpyload-53bc0477f9b0217c87676103361b1633e9b12f19.tar.xz
added account page
Diffstat (limited to 'module/api/AccountApi.py')
-rw-r--r--module/api/AccountApi.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/module/api/AccountApi.py b/module/api/AccountApi.py
index 396824a55..d1586e7aa 100644
--- a/module/api/AccountApi.py
+++ b/module/api/AccountApi.py
@@ -5,6 +5,7 @@ from module.Api import Api, RequirePerm, Permission
from ApiComponent import ApiComponent
+
class AccountApi(ApiComponent):
""" All methods to control accounts """
@@ -35,13 +36,17 @@ class AccountApi(ApiComponent):
"""Changes pw/options for specific account."""
self.core.accountManager.updateAccount(plugin, account, password, options)
+ def updateAccountInfo(self, account):
+ """ Update account from :class:`AccountInfo` """
+ #TODO
+
@RequirePerm(Permission.Accounts)
- def removeAccount(self, plugin, account):
+ def removeAccount(self, account):
"""Remove account from pyload.
- :param plugin: pluginname
- :param account: accountname
+ :param account: :class:`ÀccountInfo` instance
"""
+ # TODO
self.core.accountManager.removeAccount(plugin, account)