diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-03-31 13:11:58 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-03-31 13:11:58 +0200 |
commit | 53bc0477f9b0217c87676103361b1633e9b12f19 (patch) | |
tree | c6461ab1c292b39e49e1a5924b75761b588b25ba /module/api/AccountApi.py | |
parent | separate addon and plugin configs (diff) | |
download | pyload-53bc0477f9b0217c87676103361b1633e9b12f19.tar.xz |
added account page
Diffstat (limited to 'module/api/AccountApi.py')
-rw-r--r-- | module/api/AccountApi.py | 11 |
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) |