The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit c9d450da authored by Jerome Berthier's avatar Jerome Berthier Committed by Vincent A

[caissedepargne] fix WebsiteUnavailable after linebourse calls

That is quite strange but it is not possible to back to the home page
after fetching invests.
First we need to go back to the synthesis page, then to the home page.

Same problems when fetching recipients, we need to go first to the
summary page.
parent 7e86b7cd
......@@ -434,6 +434,9 @@ def get_accounts_list(self):
assert self.linebourse.portfolio.is_here()
# We must declare "page" because this URL also matches MarketPage
account.valuation_diff = page.get_valuation_diff()
# We need to go back to the synthesis, else we can not go home later
self.home_tache.go(tache='CPTSYNT0')
else:
assert False, "new domain that hasn't been seen so far ?"
......@@ -771,6 +774,9 @@ def get_investment(self, account):
self.update_linebourse_token()
for investment in self.linebourse.iter_investments(account.id):
yield investment
# We need to go back to the synthesis, else we can not go home later
self.home_tache.go(tache='CPTSYNT0')
return
elif account.type in (Account.TYPE_LIFE_INSURANCE, Account.TYPE_CAPITALISATION):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment