Use find object

This commit is contained in:
Florent 2014-10-10 10:21:11 +02:00
commit 6f5f41fe57
3 changed files with 2 additions and 24 deletions

View file

@ -76,15 +76,6 @@ class CreditCooperatif(Browser):
return self.page.get_list()
def get_account(self, id):
assert isinstance(id, basestring)
for a in self.get_accounts_list():
if a.id == id:
return a
return None
def get_history(self, account):
data = {'accountExternalNumber': account.id}
self.location('/portail/particuliers/mescomptes/relevedesoperations.do', urllib.urlencode(data))