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

@ -93,7 +93,7 @@ class CreditMutuelBrowser(BaseBrowser):
self.currentSubBank = subbank
def get_history(self, account):
page_url = account.link_id
page_url = account._link_id
#operations_count = 0
l_ret = []
while (page_url):
@ -170,5 +170,5 @@ class CreditMutuelBrowser(BaseBrowser):
#def get_coming_operations(self, account):
# if not self.is_on_page(AccountComing) or self.page.account.id != account.id:
# self.location('/NS_AVEEC?ch4=%s' % account.link_id)
# self.location('/NS_AVEEC?ch4=%s' % account._link_id)
# return self.page.get_operations()

View file

@ -54,8 +54,8 @@ class AccountsPage(BasePage):
if first_td.attrib.get('class', '') == 'i g' or first_td.attrib.get('class', '') == 'p g':
account = Account()
account.label = u"%s"%first_td.find('a').text.strip()
account.link_id = first_td.find('a').get('href', '')
if account.link_id.startswith('POR_SyntheseLst'):
account._link_id = first_td.find('a').get('href', '')
if account._link_id.startswith('POR_SyntheseLst'):
continue
account.id = first_td.find('a').text.split(' ')[0]+first_td.find('a').text.split(' ')[1]