correctly detect when user is logged even if the confirm page is unknown

This commit is contained in:
Romain Bignon 2012-08-24 11:07:31 +02:00
commit a9398b515a
6 changed files with 8 additions and 6 deletions

View file

@ -49,12 +49,13 @@ class CreditMutuelBrowser(BaseBrowser):
'https://www.creditmutuel.fr/.*/fr/banque/.*Vir.*': TransfertPage,
'https://www.creditmutuel.fr/.*/fr/': EmptyPage,
'https://www.creditmutuel.fr/.*/fr/banque/paci_beware_of_phishing.html.*': EmptyPage,
'https://www.creditmutuel.fr/.*/fr/validation/.*': EmptyPage,
}
currentSubBank = None
def is_logged(self):
return self.page and not self.is_on_page(LoginPage) and not self.is_on_page(LoginErrorPage)
return not self.is_on_page(LoginPage) and not self.is_on_page(LoginErrorPage)
def home(self):
return self.location('https://www.creditmutuel.fr/groupe/fr/index.html')