Account.link_id becomes a private attribute

This commit is contained in:
Romain Bignon 2012-03-10 09:03:26 +01:00
commit 35688f58c9
18 changed files with 37 additions and 30 deletions

View file

@ -57,5 +57,5 @@ class HSBCBackend(BaseBackend, ICapBank):
def iter_history(self, account):
with self.browser:
for history in self.browser.get_history(account.link_id):
for history in self.browser.get_history(account._link_id):
yield history

View file

@ -41,9 +41,9 @@ class AccountsListPage(BasePage):
a = tds[0].findall('a')[-1]
account.label = a.text.strip()
account.link_id = a.attrib['href']
account._link_id = a.attrib['href']
if not 'CPT_IdPrestation' in account.link_id:
if not 'CPT_IdPrestation' in account._link_id:
continue
tag = tds[2].find('font')