From e128fcc2e2ed7767a879e16ae002cbe596cc3349 Mon Sep 17 00:00:00 2001 From: Florent Date: Tue, 25 Sep 2012 16:35:09 +0200 Subject: [PATCH] Allow transfer with weboob identifiers --- modules/ing/backend.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/ing/backend.py b/modules/ing/backend.py index c95302e2..1e0d208f 100644 --- a/modules/ing/backend.py +++ b/modules/ing/backend.py @@ -21,7 +21,7 @@ # python2.5 compatibility from __future__ import with_statement -from weboob.capabilities.bank import ICapBank, AccountNotFound, Account +from weboob.capabilities.bank import ICapBank, AccountNotFound, Account, Recipient from weboob.tools.backend import BaseBackend, BackendConfig from weboob.tools.value import ValueBackendPassword @@ -84,4 +84,8 @@ class INGBackend(BaseBackend, ICapBank): with self.browser: if not isinstance(account, Account): account = self.get_account(account) + if not isinstance(recipient, Recipient): + # Remove weboob identifier prefix (LA-, CC-...) + if "-" in recipient: + recipient = recipient[3:] return self.browser.transfer(account, recipient, amount, reason)