Use strings instead of integers internally for account IDs

This commit is contained in:
Laurent Bachelier 2010-11-12 18:40:23 +01:00
commit 024f217c8b
7 changed files with 24 additions and 33 deletions

View file

@ -46,16 +46,13 @@ class LCLBackend(BaseBackend, ICapBank):
yield account
def get_account(self, _id):
try:
_id = long(_id)
except ValueError:
if not _id.isdigit():
raise AccountNotFound()
account = self.browser.get_account(_id)
if account:
return account
else:
account = self.browser.get_account(_id)
if account:
return account
else:
raise AccountNotFound()
raise AccountNotFound()
def iter_operations(self, account):
""" TODO Not supported yet """