add Account.TYPE_CARD

This commit is contained in:
Romain Bignon 2014-02-02 10:50:01 +01:00
commit 5b03648b68
2 changed files with 2 additions and 0 deletions

View file

@ -148,6 +148,7 @@ class CardsPage(BasePage):
get = lambda name: self.parser.tocleanstring(table.xpath(xpaths[name])[0])
account = Account()
account.type = account.TYPE_CARD
account.id = ''.join(get('_id').split()[1:])
account.label = '%s - %s' % (get('label1'),
re.sub('\s*-\s*$', '', get('label2')))