citelis: Support transaction history

This commit is contained in:
Laurent Bachelier 2013-07-29 19:08:06 +02:00 committed by Romain Bignon
commit 834c30b1e8
3 changed files with 72 additions and 5 deletions

View file

@ -20,7 +20,7 @@
from weboob.tools.backend import BaseBackend, BackendConfig
from weboob.tools.value import ValueBackendPassword
from weboob.capabilities.bank import ICapBank
from weboob.capabilities.bank import ICapBank, AccountNotFound
from .browser import CitelisBrowser
@ -50,3 +50,12 @@ class CitelisBackend(BaseBackend, ICapBank):
def iter_accounts(self):
return self.browser.get_accounts_list()
def get_account(self, _id):
for account in self.iter_accounts():
if account.id == _id:
return account
raise AccountNotFound()
def iter_history(self, account):
return self.browser.iter_history(account)