don't list bourse accounts
This commit is contained in:
parent
443df5360c
commit
2d4635b3e6
2 changed files with 4 additions and 0 deletions
|
|
@ -91,6 +91,8 @@ class BPBrowser(BaseBrowser):
|
||||||
|
|
||||||
def get_history(self, Account):
|
def get_history(self, Account):
|
||||||
self.location(Account._link_id)
|
self.location(Account._link_id)
|
||||||
|
if not self.is_on_page(AccountHistory):
|
||||||
|
return iter([])
|
||||||
return self.page.get_history()
|
return self.page.get_history()
|
||||||
|
|
||||||
def make_transfer(self, from_account, to_account, amount):
|
def make_transfer(self, from_account, to_account, amount):
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,8 @@ class AccountList(BasePage):
|
||||||
tmp = line.xpath("./td//a")[0]
|
tmp = line.xpath("./td//a")[0]
|
||||||
account.label = to_unicode(tmp.text)
|
account.label = to_unicode(tmp.text)
|
||||||
account._link_id = tmp.get("href")
|
account._link_id = tmp.get("href")
|
||||||
|
if 'BourseEnLigne' in account._link_id:
|
||||||
|
continue
|
||||||
|
|
||||||
tmp = line.xpath("./td/span/strong")
|
tmp = line.xpath("./td/span/strong")
|
||||||
if len(tmp) >= 2:
|
if len(tmp) >= 2:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue