summaryrefslogtreecommitdiffstats
path: root/module/plugins/Account.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-05-07 17:50:26 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-05-07 17:50:26 +0200
commit58f36fc058e6f566ecffc395f09419f34ece50a9 (patch)
tree65bdc68d6110fc371446c99685dabb18156a1f0d /module/plugins/Account.py
parentUploadedTo account plugin (diff)
downloadpyload-58f36fc058e6f566ecffc395f09419f34ece50a9.tar.xz
new server method for premium accounts
Diffstat (limited to 'module/plugins/Account.py')
-rw-r--r--module/plugins/Account.py8
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])