port to the new format API (blame cbenz who has broken three frontends once)
This commit is contained in:
parent
1aad7e430f
commit
7158d9c97b
3 changed files with 38 additions and 44 deletions
|
|
@ -3,16 +3,16 @@
|
|||
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
|
||||
|
||||
# Copyright(C) 2009-2010 Romain Bignon, Christophe Benz
|
||||
#
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, version 3 of the License.
|
||||
#
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
|
@ -42,7 +42,7 @@ class Boobank(ConsoleApplication):
|
|||
def command_list(self):
|
||||
try:
|
||||
for backend, account in self.weboob.do('iter_accounts'):
|
||||
self.format(account)
|
||||
self.format(account, backend.name)
|
||||
except weboob.CallErrors, errors:
|
||||
for backend, error, backtrace in errors:
|
||||
if isinstance(error, weboob.tools.browser.BrowserIncorrectPassword):
|
||||
|
|
@ -60,7 +60,7 @@ class Boobank(ConsoleApplication):
|
|||
|
||||
try:
|
||||
for backend, operation in self.weboob.do(do):
|
||||
self.format(operation)
|
||||
self.format(operation, backend.name)
|
||||
total += operation.amount
|
||||
except weboob.CallErrors, errors:
|
||||
for backend, error, backtrace in errors:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue