From 4422a254212b55a2ec7e170ca17ab17b1492f8cb Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Thu, 15 Mar 2012 15:50:47 +0100 Subject: [PATCH] fix getting accounts --- 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 63130765..765ab8af 100644 --- a/modules/lcl/pages.py +++ b/modules/lcl/pages.py @@ -142,7 +142,9 @@ class AccountsPage(BasePage): elif name=="compte": account.id+=value elif name=="nature": - account.type=value + # TODO parse this string to get the right Account.TYPE_* to + # store in account.type. + account._type=value account.label=a.getparent().getprevious().text.strip() balance=a.text.replace(u"\u00A0",'').replace(' ','').replace('.','').replace('+','').replace(',','.') account.balance=float(balance)