diff --git a/weboob/applications/boobank/boobank.py b/weboob/applications/boobank/boobank.py index 3076d675..a109a8fd 100644 --- a/weboob/applications/boobank/boobank.py +++ b/weboob/applications/boobank/boobank.py @@ -29,6 +29,8 @@ class Boobank(ReplApplication): VERSION = '0.3' COPYRIGHT = 'Copyright(C) 2010 Romain Bignon, Christophe Benz' CAPS = ICapBank + DEFAULT_FORMATTER = 'table' + COMMANDS_FORMATTERS = {'transfer': 'multiline'} accounts = [] @@ -48,9 +50,11 @@ class Boobank(ReplApplication): tot_coming += account.coming self.accounts.append(account) else: - self.format((('label', 'Total'), + self.format((('id', ''), + ('label', 'Total'), ('balance', tot_balance), ('coming', tot_coming))) + self.flush() def _complete_account(self, exclude=None): if exclude: diff --git a/weboob/capabilities/bank.py b/weboob/capabilities/bank.py index 7aed20e1..201f48ca 100644 --- a/weboob/capabilities/bank.py +++ b/weboob/capabilities/bank.py @@ -37,7 +37,7 @@ class Account(CapBaseObject): self.add_field('label', basestring) self.add_field('balance', float) self.add_field('coming', float) - self.add_field('link_id', basestring) + self.link_id = None def __repr__(self): return u"" % (self.id, self.label)