PLEASE CBENZ CHECK YOUR FUCKING COMMITS THANKS.

This commit is contained in:
Romain Bignon 2010-06-24 14:53:21 +02:00
commit e5a8c2e277

View file

@ -35,24 +35,24 @@ class AccountsList(BasePage):
for td in tr.getiterator('td'):
if td.attrib.get('headers', '').startswith('Numero_'):
id = td.text
account.id = ''.join(id.split(' '))
account.id = ''.join(id.split(' ')).strip()
elif td.attrib.get('headers', '').startswith('Libelle_'):
a = td.findall('a')
label = unicode(a[0].text)
account.label = label
m = self.LINKID_REGEXP.match(a[0].attrib.get('href', ''))
if m:
account.setLinkID(m.group(1))
account.link_id = m.group(1)
elif td.attrib.get('headers', '').startswith('Solde'):
a = td.findall('a')
balance = a[0].text
balance = balance.replace('.','').replace(',','.')
account.balance = float(balance)
account.balance = float(balance)
elif td.attrib.get('headers', '').startswith('Avenir'):
a = td.findall('a')
coming = a[0].text
coming = coming.replace('.','').replace(',','.')
account.setComing(float(coming))
account.coming = float(coming)
l.append(account)
return l