Use new vdate in modules instead of _val

This commit is contained in:
Laurent Bachelier 2013-07-29 19:23:58 +02:00 committed by Romain Bignon
commit 5cbebe0117
2 changed files with 4 additions and 3 deletions

View file

@ -190,7 +190,7 @@ class HistoryPage(BEPage):
date = datetime.strptime(tddate, '%d/%m/%Y')
val = datetime.strptime(tdval, '%d/%m/%Y')
t.parse(date, tdlabel)
t._val = val # FIXME is it rdate? date?
t.vdate = val
yield t

View file

@ -112,6 +112,7 @@ class AccountsPage(SGPEPage):
account.currency = account.get_currency(tdbalance)
yield account
class CardsPage(SGPEPage):
COL_ID = 0
COL_LABEL = 1
@ -165,7 +166,6 @@ class CardsPage(SGPEPage):
yield account
class HistoryPage(SGPEPage):
def iter_transactions(self, account, basecount):
table = self.parser.select(self.document.getroot(), '#tab-corps', 1)
@ -189,7 +189,7 @@ class HistoryPage(SGPEPage):
l1 = ' '.join(l1.split())
l2 = ' '.join(l2.split())
t.parse(date, l1 + ' ' + l2)
t._val = val # FIXME is it rdate? date?
t.vdate = val
yield t
def has_next(self):
@ -199,6 +199,7 @@ class HistoryPage(SGPEPage):
return int(end.text.replace('/', '')) > cur
return False
class CardHistoryPage(SGPEPage):
COL_DATE = 0
COL_LABEL = 1