diff --git a/modules/ing/browser.py b/modules/ing/browser.py index 89a2db3e249c4d113df2024f28d2142b0189b241..848cc4f35915a7b4e8a3692dd20d122665553aa8 100644 --- a/modules/ing/browser.py +++ b/modules/ing/browser.py @@ -195,7 +195,7 @@ def get_market_balance(self, account): self.cache["investments_data"][account.id] = self.page.doc or None @need_login - def get_iban(self, account): + def fill_account(self, account): if account.type in [Account.TYPE_CHECKING, Account.TYPE_SAVINGS]: self.go_account_page(account) account.iban = self.ibanpage.go().get_iban() @@ -204,7 +204,7 @@ def get_iban(self, account): self.get_market_balance(account) @need_login - def get_accounts_on_space(self, space, get_iban=True): + def get_accounts_on_space(self, space, fill_account=True): accounts_list = [] self.change_space(space) @@ -227,19 +227,19 @@ def get_accounts_on_space(self, space, get_iban=True): @need_login @start_with_main_site - def get_accounts_list(self, space=None, get_iban=True): + def get_accounts_list(self, space=None, fill_account=True): self.accountspage.go() self.where = 'start' self.set_multispace() if space: - for acc in self.get_accounts_on_space(space, get_iban=get_iban): + for acc in self.get_accounts_on_space(space, fill_account=fill_account): yield acc elif self.multispace: for space in self.multispace: - for acc in self.get_accounts_on_space(space, get_iban=get_iban): + for acc in self.get_accounts_on_space(space, fill_account=fill_account): yield acc else: for acc in self.page.get_list(): @@ -288,7 +288,7 @@ def return_from_loan_site(self): self.location('https://secure.ing.fr/', data={'token': self.response.text}) def get_account(self, _id, space=None): - return find_object(self.get_accounts_list(get_iban=False, space=space), id=_id, error=AccountNotFound) + return find_object(self.get_accounts_list(fill_account=False, space=space), id=_id, error=AccountNotFound) def go_account_page(self, account): diff --git a/modules/ing/pages/transfer.py b/modules/ing/pages/transfer.py index 034bd085997c3930c70caf5f3e804201b8546a50..b05ec9e098446d0b41e4f9f537fed10c93086829 100644 --- a/modules/ing/pages/transfer.py +++ b/modules/ing/pages/transfer.py @@ -73,7 +73,7 @@ class item(MyRecipient): def parse(self, el): _id = Attr('.', 'data-acct-number')(self) - accounts = [acc for acc in self.page.browser.get_accounts_list(get_iban=False, space=self.env['origin']._space) if _id in acc.id] + accounts = [acc for acc in self.page.browser.get_accounts_list(fill_account=False, space=self.env['origin']._space) if _id in acc.id] assert len(accounts) == 1 account = accounts[0] self.env['id'] = account.id