finished to use BaseBrowser (closes #422)

This commit is contained in:
nicolas duhamel 2010-11-15 15:18:34 +01:00 committed by Romain Bignon
commit b5e016f9ba
5 changed files with 119 additions and 13 deletions

View file

@ -49,4 +49,12 @@ class BPBackend(BaseBackend, ICapBank):
def iter_history(self, account):
for history in self.browser.get_history(account):
yield history
def transfer(self, id_from, id_to, amount, reason=None):
from_account = self.get_account(id_from)
to_account = self.get_account(id_to)
#TODO: retourner le numero du virement
#TODO: support the 'reason' parameter
return self.browser.make_transfer(from_account, to_account, amount)