From 53bc0477f9b0217c87676103361b1633e9b12f19 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 31 Mar 2013 13:11:58 +0200 Subject: added account page --- module/api/AccountApi.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'module/api/AccountApi.py') 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) -- cgit v1.2.3