From 1f5a55ae2133a782bdcca334ecbcdbde50dbcf99 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 17 Jul 2015 15:29:48 +0200 Subject: No more need to use the req argument when call load method --- module/plugins/accounts/FilerNet.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'module/plugins/accounts/FilerNet.py') diff --git a/module/plugins/accounts/FilerNet.py b/module/plugins/accounts/FilerNet.py index 192905ebe..ac90c2993 100644 --- a/module/plugins/accounts/FilerNet.py +++ b/module/plugins/accounts/FilerNet.py @@ -23,7 +23,7 @@ class FilerNet(Account): def load_account_info(self, user, req): - html = self.load("https://filer.net/profile", req=req) + html = self.load("https://filer.net/profile") #: Free user if re.search(self.FREE_PATTERN, html): @@ -43,7 +43,7 @@ class FilerNet(Account): def login(self, user, data, req): - html = self.load("https://filer.net/login", req=req) + html = self.load("https://filer.net/login") token = re.search(self.TOKEN_PATTERN, html).group(1) @@ -52,8 +52,7 @@ class FilerNet(Account): "_password" : data['password'], "_remember_me": "on", "_csrf_token" : token, - "_target_path": "https://filer.net/"}, - req=req) + "_target_path": "https://filer.net/"}) if 'Logout' not in html: self.wrong_password() -- cgit v1.2.3