Add details command

This commit is contained in:
Florent 2012-08-29 13:59:52 +02:00
commit 8fa430e61f
2 changed files with 44 additions and 10 deletions

View file

@ -112,7 +112,10 @@ class Leclercmobile(BaseBrowser):
def get_details(self):
if not self.is_on_page(HistoryPage):
self.location(self.conso)
return self.page.get_details()
response = self.openurl('/EspaceClient/pgeWERL015_RecupReleveConso.aspx?m=-0')
pdf = PdfPage(StringIO.StringIO(response.read()))
for detail in pdf.get_details():
yield detail
def iter_bills(self, parentid):
if not self.is_on_page(HistoryPage):