don't list bourse accounts

This commit is contained in:
Romain Bignon 2012-04-23 11:00:39 +02:00
commit 2d4635b3e6
2 changed files with 4 additions and 0 deletions

View file

@ -91,6 +91,8 @@ class BPBrowser(BaseBrowser):
def get_history(self, Account):
self.location(Account._link_id)
if not self.is_on_page(AccountHistory):
return iter([])
return self.page.get_history()
def make_transfer(self, from_account, to_account, amount):

View file

@ -51,6 +51,8 @@ class AccountList(BasePage):
tmp = line.xpath("./td//a")[0]
account.label = to_unicode(tmp.text)
account._link_id = tmp.get("href")
if 'BourseEnLigne' in account._link_id:
continue
tmp = line.xpath("./td/span/strong")
if len(tmp) >= 2: