From 58f36fc058e6f566ecffc395f09419f34ece50a9 Mon Sep 17 00:00:00 2001 From: mkaay Date: Fri, 7 May 2010 17:50:26 +0200 Subject: new server method for premium accounts --- module/plugins/Account.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'module/plugins/Account.py') 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]) -- cgit v1.2.3