summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RPNetBiz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-17 18:59:20 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-24 22:42:40 +0200
commit20b6a2ec022202b0efb6cb69415239fb8f4d1445 (patch)
treefdbb3ad42854144b1cace0221145a472b36ef84d /module/plugins/accounts/RPNetBiz.py
parentSpare code cosmetics (diff)
downloadpyload-20b6a2ec022202b0efb6cb69415239fb8f4d1445.tar.xz
Spare code cosmetics (2)
Diffstat (limited to 'module/plugins/accounts/RPNetBiz.py')
-rw-r--r--module/plugins/accounts/RPNetBiz.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/RPNetBiz.py b/module/plugins/accounts/RPNetBiz.py
index 509febde6..be456f2d7 100644
--- a/module/plugins/accounts/RPNetBiz.py
+++ b/module/plugins/accounts/RPNetBiz.py
@@ -15,11 +15,11 @@ class RPNetBiz(Account):
def loadAccountInfo(self, user, req):
- # Get account information from rpnet.biz
+ #: Get account information from rpnet.biz
res = self.getAccountStatus(user, req)
try:
if res['accountInfo']['isPremium']:
- # Parse account info. Change the trafficleft later to support per host info.
+ #: Parse account info. Change the trafficleft later to support per host info.
account_info = {"validuntil": float(res['accountInfo']['premiumExpiry']),
"trafficleft": -1, "premium": True}
else:
@@ -33,16 +33,16 @@ class RPNetBiz(Account):
def login(self, user, data, req):
- # Get account information from rpnet.biz
+ #: Get account information from rpnet.biz
res = self.getAccountStatus(user, req)
- # If we have an error in the res, we have wrong login information
+ #: If we have an error in the res, we have wrong login information
if 'error' in res:
self.wrongPassword()
def getAccountStatus(self, user, req):
- # Using the rpnet API, check if valid premium account
+ #: Using the rpnet API, check if valid premium account
res = self.load("https://premium.rpnet.biz/client_api.php",
get={"username": user, "password": self.getAccountData(user)['password'],
"action": "showAccountInformation"})