First work on transfer

This commit is contained in:
Florent 2012-09-24 17:06:16 +02:00 committed by Romain Bignon
commit af96a09be0
4 changed files with 58 additions and 11 deletions

View file

@ -79,3 +79,9 @@ class INGBackend(BaseBackend, ICapBank):
account = self.get_account(account)
for recipient in self.browser.get_recipients(account):
yield recipient
def transfer(self, account, recipient, amount, reason):
with self.browser:
if not isinstance(account, Account):
account = self.get_account(account)
self.browser.transfer(account, recipient, amount, reason)