adding support for leroy merlin

This commit is contained in:
Vincent Paredes 2014-02-26 10:37:13 +01:00 committed by Romain Bignon
commit b9c8108d04
3 changed files with 42 additions and 14 deletions

View file

@ -18,7 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from weboob.capabilities.bank import ICapBank
from weboob.capabilities.bank import ICapBank, AccountNotFound
from weboob.tools.backend import BaseBackend, BackendConfig
from weboob.tools.value import ValueBackendPassword
@ -46,10 +46,16 @@ class BanqueAccordBackend(BaseBackend, ICapBank):
def iter_accounts(self):
with self.browser:
return [self.browser.get_account()]
return self.browser.get_accounts_list()
def get_account(self, id):
return self.browser.get_account()
def get_account(self, _id):
with self.browser:
account = self.browser.get_account(_id)
if account:
return account
else:
raise AccountNotFound()
def iter_history(self, account):
with self.browser: