LCL: implement account listing

Signed-off-by: Pierre Mazière <pierre.maziere@gmail.com>
Signed-off-by: Romain Bignon <romain@peerfuse.org>
This commit is contained in:
Pierre Mazière 2011-03-06 23:47:53 +01:00 committed by Romain Bignon
commit a732a8a051
2 changed files with 19 additions and 4 deletions

View file

@ -46,9 +46,8 @@ class LCLBackend(BaseBackend, ICapBank):
yield account
def get_account(self, _id):
if not _id.isdigit():
raise AccountNotFound()
account = self.browser.get_account(_id)
with self.browser:
account = self.browser.get_account(_id)
if account:
return account
else: