From 9a43dce0343059de465636ebf0491da2e3313b0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Wed, 28 Mar 2012 14:55:18 +0200 Subject: [PATCH] LCL: site specific fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported-by: Ch. Perret Signed-off-by: Pierre Mazière --- modules/lcl/pages.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/lcl/pages.py b/modules/lcl/pages.py index 37a7e6f1..8ec3cae0 100644 --- a/modules/lcl/pages.py +++ b/modules/lcl/pages.py @@ -190,7 +190,9 @@ class AccountHistoryPage(BasePage): if value is None: value=td.attrib.get('class'); if value.startswith("date"): - operation.date=date(*reversed([int(x) for x in td.text.split('/')])) + # some transaction are included in a tag + value=u''.join([txt.strip() for txt in td.itertext()]) + operation.date=date(*reversed([int(x) for x in value.split('/')])) elif value.startswith("lib") or value.startswith("opLib"): # misclosed A tag requires to grab text from td operation.raw=u''.join([txt.strip() for txt in td.itertext()])