support display of history and coming transactions

This commit is contained in:
Romain Bignon 2012-04-09 11:21:28 +02:00
commit 10dc63e4fa
4 changed files with 116 additions and 16 deletions

View file

@ -51,7 +51,6 @@ class SocieteGeneraleBackend(BaseBackend, ICapBank):
yield account
def get_account(self, _id):
print _id
if not _id.isdigit():
raise AccountNotFound()
with self.browser:
@ -60,3 +59,15 @@ class SocieteGeneraleBackend(BaseBackend, ICapBank):
return account
else:
raise AccountNotFound()
def iter_history(self, account):
with self.browser:
for tr in self.browser.iter_history(account._link_id):
if not tr._coming:
yield tr
def iter_coming(self, account):
with self.browser:
for tr in self.browser.iter_history(account._link_id):
if tr._coming:
yield tr