useless correction

This commit is contained in:
Julien Veyssier 2010-11-25 13:02:17 +01:00 committed by Romain Bignon
commit 9f453b3086

View file

@ -72,15 +72,26 @@ class CreditMutuelBrowser(BaseBrowser):
def get_history(self, account): def get_history(self, account):
page_url = account.link_id page_url = account.link_id
#operations_count = 0 #operations_count = 0
l_ret = []
while (page_url): while (page_url):
self.location('https://%s/cmdv/fr/banque/%s' % (self.DOMAIN, page_url)) self.location('https://%s/cmdv/fr/banque/%s' % (self.DOMAIN, page_url))
#for page_operation in self.page.get_history(operations_count): #for page_operation in self.page.get_history(operations_count):
# operations_count += 1 # operations_count += 1
# yield page_operation # yield page_operation
## FONCTIONNE
#for op in self.page.get_history():
# yield op
## FONTIONNE
#return self.page.get_history()
for op in self.page.get_history(): for op in self.page.get_history():
yield op l_ret.append(op)
page_url = self.page.next_page_url() page_url = self.page.next_page_url()
return l_ret
#def get_coming_operations(self, account): #def get_coming_operations(self, account):
# if not self.is_on_page(AccountComing) or self.page.account.id != account.id: # if not self.is_on_page(AccountComing) or self.page.account.id != account.id: