Use find object
This commit is contained in:
parent
23b4cc909f
commit
6f5f41fe57
3 changed files with 2 additions and 24 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue