Get more historical transactions

We get now all availables transactions on the website, not only
the first page
This commit is contained in:
Florent 2012-04-18 14:06:34 +02:00 committed by Romain Bignon
commit ae3ccde2e8
2 changed files with 33 additions and 10 deletions

View file

@ -91,7 +91,11 @@ class Ing(BaseBrowser):
self.location('https://secure.ingdirect.fr/general?command=goToAccount&account=%d&zone=COMPTE' % int(id))
else:
raise NotImplementedError()
return self.page.get_transactions()
# TODO
# def get_coming_operations
while 1:
for transaction in self.page.get_transactions():
yield transaction
if self.page.islast():
return
self.page.next_page()
# The answer is not a valide html page for mechanize, we have to be tolerant
self._factory.is_html = True