From 755de4c3f582910e04d7c1b099d5b3a4363d91a6 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Wed, 18 Apr 2012 10:54:03 +0200 Subject: [PATCH] add capitals on each words in account labels --- modules/creditmutuel/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/creditmutuel/pages.py b/modules/creditmutuel/pages.py index ec65aa12..253816d3 100644 --- a/modules/creditmutuel/pages.py +++ b/modules/creditmutuel/pages.py @@ -54,7 +54,7 @@ class AccountsPage(BasePage): if (first_td.attrib.get('class', '') == 'i g' or first_td.attrib.get('class', '') == 'p g') \ and first_td.find('a') is not None: account = Account() - account.label = u"%s"%first_td.find('a').text.strip().lstrip(' 0123456789').capitalize() + account.label = u"%s"%first_td.find('a').text.strip().lstrip(' 0123456789').title() account._link_id = first_td.find('a').get('href', '') if account._link_id.startswith('POR_SyntheseLst'): continue