diff options
author | mkaay <mkaay@mkaay.de> | 2010-05-07 17:50:26 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-05-07 17:50:26 +0200 |
commit | 58f36fc058e6f566ecffc395f09419f34ece50a9 (patch) | |
tree | 65bdc68d6110fc371446c99685dabb18156a1f0d /module/plugins/Account.py | |
parent | UploadedTo account plugin (diff) | |
download | pyload-58f36fc058e6f566ecffc395f09419f34ece50a9.tar.xz |
new server method for premium accounts
Diffstat (limited to 'module/plugins/Account.py')
-rw-r--r-- | module/plugins/Account.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/module/plugins/Account.py b/module/plugins/Account.py index 2ed2325c9..7c8beec76 100644 --- a/module/plugins/Account.py +++ b/module/plugins/Account.py @@ -43,10 +43,14 @@ class Account(): def getAccountInfo(self, name): return { "validuntil": None, - "login": None, - "trafficleft": None + "login": name, + "trafficleft": None, + "type": self.__name__ } + def getAllAccounts(self): + return map(lambda t: self.getAccountInfo(t[0]), self.accounts) + def getAccountRequest(self, plugin): account = self.getAccountData(plugin) req = self.core.requestFactory.getRequest(self.__name__, account[0]) |