diff --git a/modules/ing/backend.py b/modules/ing/backend.py index 48cb1bcc..947b9d2a 100644 --- a/modules/ing/backend.py +++ b/modules/ing/backend.py @@ -127,5 +127,4 @@ class INGBackend(BaseBackend, ICapBank, ICapBill): if not isinstance(bill, Bill): bill = self.get_bill(bill) self.browser.predownload(bill) - with self.browser: - return self.browser.readurl("https://secure.ingdirect.fr" + bill._url) + return self.browser.open("https://secure.ingdirect.fr" + bill._url) diff --git a/modules/ing/browser.py b/modules/ing/browser.py index 4b34c7dc..a0919740 100644 --- a/modules/ing/browser.py +++ b/modules/ing/browser.py @@ -17,7 +17,6 @@ # You should have received a copy of the GNU Affero General Public License # along with weboob. If not, see . import hashlib -import urllib from weboob.tools.browser2 import LoginBrowser, URL, need_login from weboob.tools.browser import BrowserIncorrectPassword @@ -217,8 +216,9 @@ class IngBrowser(LoginBrowser): ############# CapBill ############# @need_login def get_subscriptions(self): - return self.billpage.stay_or_go().iter_account() + return self.billpage.go().iter_account() + @need_login def get_bills(self, subscription): self.billpage.stay_or_go() data = {"AJAXREQUEST": "_viewRoot", @@ -232,4 +232,4 @@ class IngBrowser(LoginBrowser): return self.page.iter_bills(subid=subscription.id) def predownload(self, bill): - self.page.postpredown(localid=bill._localid) + self.page.postpredown(bill._localid)