[cmb/cmso] Needs an update for the new login form: FormNotFound
Hi,
boobank ls/history don't work anymore with the cmb/cmso module after an update of the cmb.fr website, which changed the way login happens. The customer number gets asked first, before a password prompt. This leads to such tracebacks:
kibi@armor:~$ boobank -b cmb --debug ls
2017-09-26 20:38:43,909:DEBUG:root:1.4:yamlconfig.py:61:load Loading application configuration file: /home/kibi/work/tools/weboob-devel-cmb.git/localconfig/boobank.storage.
2017-09-26 20:38:43,909:DEBUG:root:1.4:yamlconfig.py:65:load Application configuration file loaded: /home/kibi/work/tools/weboob-devel-cmb.git/localconfig/boobank.storage.
2017-09-26 20:38:43,911:DEBUG:modules:1.4:modules.py:163:load_module Loaded module "cmb" from /home/kibi/work/tools/weboob-devel-cmb.git/modules/cmb
2017-09-26 20:38:43,938:DEBUG:modules:1.4:modules.py:163:load_module Loaded module "cmso" from /home/kibi/work/tools/weboob-devel-cmb.git/modules/cmso
2017-09-26 20:38:43,939:DEBUG:backend:1.4:modules.py:94:create_instance Created backend "cmb" for module "cmb"
2017-09-26 20:38:43,939:DEBUG:root:1.4:iniconfig.py:51:load Loading application configuration file: /home/kibi/work/tools/weboob-devel-cmb.git/localconfig/boobank.
2017-09-26 20:38:43,939:DEBUG:root:1.4:iniconfig.py:68:load Application configuration file loaded: /home/kibi/work/tools/weboob-devel-cmb.git/localconfig/boobank.
Account Balance Coming
---------------------------------------------------------+----------+----------
2017-09-26 20:38:43,947:DEBUG:bcall:1.4:bcall.py:92:backend_process <Backend u'cmb'>: Calling function <bound method Boobank._do_complete of <weboob.applications.boobank.boobank.Boobank object at 0x7f467c97ccd0>>
2017-09-26 20:38:43,948:DEBUG:requests.packages.urllib3.util.retry:1.4:retry.py:191:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None)
2017-09-26 20:38:43,948:DEBUG:requests.packages.urllib3.util.retry:1.4:retry.py:191:from_int Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None)
2017-09-26 20:38:43,972:DEBUG:requests.packages.urllib3.connectionpool:1.4:connectionpool.py:811:_new_conn Starting new HTTPS connection (1): www.cmb.fr
2017-09-26 20:38:44,094:DEBUG:requests.packages.urllib3.connectionpool:1.4:connectionpool.py:400:_make_request https://www.cmb.fr:443 "GET /banque/assurance/credit-mutuel/pro/accueil?espace=professionnels HTTP/1.1" 200 None
2017-09-26 20:38:44,145:DEBUG:backend.cmb.browser:1.4:browsers.py:674:internal_callback Handle https://www.cmb.fr/banque/assurance/credit-mutuel/pro/accueil?espace=professionnels with LoginPage
2017-09-26 20:38:44,146:DEBUG:bcall:1.4:bcall.py:98:backend_process <Backend u'cmb'>: Called function <bound method Boobank._do_complete of <weboob.applications.boobank.boobank.Boobank object at 0x7f467c97ccd0>> raised an error: FormNotFound()
Bug(cmb):
Traceback (most recent call last):
File "/home/kibi/work/tools/weboob-devel-cmb.git/weboob/core/bcall.py", line 94, in backend_process
result = function(backend, *args, **kwargs)
File "/home/kibi/work/tools/weboob-devel-cmb.git/weboob/tools/application/base.py", line 308, in _do_complete
res = getattr(backend, function)(*args, **kwargs)
File "/home/kibi/work/tools/weboob-devel-cmb.git/weboob/capabilities/bank.py", line 453, in iter_resources
return self.iter_accounts()
File "/home/kibi/work/tools/weboob-devel-cmb.git/modules/cmso/module.py", line 59, in iter_accounts
return self.browser.iter_accounts()
File "/home/kibi/work/tools/weboob-devel-cmb.git/weboob/browser/browsers.py", line 765, in inner
browser.do_login()
File "/home/kibi/work/tools/weboob-devel-cmb.git/modules/cmso/pro/browser.py", line 52, in do_login
self.page.login(self.username, self.password)
File "/home/kibi/work/tools/weboob-devel-cmb.git/modules/cmso/pro/pages.py", line 64, in login
form = self.get_form('//form[@id="formAuth"]')
File "/home/kibi/work/tools/weboob-devel-cmb.git/weboob/browser/pages.py", line 693, in get_form
raise FormNotFound()
FormNotFound
Last OK was on 2017-09-25, first KO was on 2017-09-26. Suspecting maintenance during that night.
Reproducible with latest master: 1.3-30-gb7a36aff