• [^] # Re: Credit Mutuel

    Posté par . En réponse au journal Boobathon le Samedi 17-03-2012. Évalué à 2. Dernière modification le 09 mars 2012 à 12:54.

    Bon, c'est déjà mieux, weboob est a jour et les backends aussi.
    Boobank ls marche, mais pas l'historique… (testé sur Ubuntu et sur MacOS)

    J'en profite pendant que je suis là :

    boobank> history 2
    2012年03月09日 12:53:08,103:DEBUG:bcall:bcall.py:80:__init__ Creating a new thread for <Backend 'creditmutuel'>
    2012年03月09日 12:53:08,104:DEBUG:bcall:bcall.py:100:_caller <Backend 'creditmutuel'>: Thread created successfully
    2012年03月09日 12:53:08,105:DEBUG:bcall:bcall.py:105:_caller <Backend 'creditmutuel'>: Calling function <bound method Boobank._do_complete of <weboob.applications.boobank.boobank.Boobank object at 0xd0b850>>
    2012年03月09日 12:53:08,683:DEBUG:backend.creditmutuel.browser:browser.py:560:_change_location [user_id=XXXXX] Went on https://www.creditmutuel.fr/cmcee/fr/banque/situation_financiere.cgi
    2012年03月09日 12:53:08,718:DEBUG:bcall:bcall.py:114:_caller <Backend 'creditmutuel'>: Called function <bound method Boobank._do_complete of <weboob.applications.boobank.boobank.Boobank object at 0xd0b850>> returned: <generator object _do_complete_iter at 0x15dca50>
    2012年03月09日 12:53:09,374:DEBUG:backend.creditmutuel.browser:browser.py:560:_change_location [user_id=XXXXX] Went on https://www.creditmutuel.fr/cmcee/fr/banque/mouvements.cgi?webid=9dd0f3bcc6cbdd012859ecde7ad46940e2ae16b192a2f5f2fd7c591aea64fbb2&rib=XXXXXX1EUR
    Error(creditmutuel): Value for "label" needs to be of type <type 'unicode'>, not <type 'str'>
    Traceback (most recent call last):
     File "/usr/local/lib/python2.6/dist-packages/weboob-0.a-py2.6.egg/weboob/core/bcall.py", line 119, in _caller
     for subresult in result:
     File "/usr/local/lib/python2.6/dist-packages/weboob-0.a-py2.6.egg/weboob/tools/application/base.py", line 243, in _do_complete_iter
     for i, sub in enumerate(res):
     File "/home/bouil/.local/share/weboob/modules/creditmutuel/backend.py", line 63, in iter_history
     for history in self.browser.get_history(account):
     File "/home/bouil/.local/share/weboob/modules/creditmutuel/browser.py", line 115, in get_history
     for op in self.page.get_history():
     File "/home/bouil/.local/share/weboob/modules/creditmutuel/pages.py", line 95, in get_history
     operation.label = tds[-3].text.replace('\n',' ').strip()
     File "/usr/local/lib/python2.6/dist-packages/weboob-0.a-py2.6.egg/weboob/capabilities/base.py", line 155, in __setattr__
     name, attr.type, type(value)))
    ValueError: Value for "label" needs to be of type <type 'unicode'>, not <type 'str'>
    
    

    Une idée du problème ?