Use strings instead of integers internally for account IDs

This commit is contained in:
Laurent Bachelier 2010-11-12 18:40:23 +01:00
commit 024f217c8b
7 changed files with 24 additions and 33 deletions

View file

@ -33,7 +33,7 @@ class TransferPage(BasePage):
if table.attrib.get('cellspacing') == '2':
for tr in table.cssselect('tr.hdoc1, tr.hdotc1'):
tds = tr.findall('td')
id = long(tds[1].text.replace(u'\xa0', u''))
id = tds[1].text.replace(u'\xa0', u'')
if id == from_id:
if tds[4].find('input') is None:
raise TransferError("Unable to make a transfer from %s" % from_id)