use self.do instead of self.weboob.do in console apps

This commit is contained in:
Christophe Benz 2010-08-12 16:44:42 +02:00
commit 7df5136b5f
10 changed files with 21 additions and 21 deletions

View file

@ -41,7 +41,7 @@ class Boobank(ConsoleApplication):
@ConsoleApplication.command('List every available accounts')
def command_list(self):
try:
for backend, account in self.weboob.do('iter_accounts'):
for backend, account in self.do('iter_accounts'):
self.format(account, backend.name)
except weboob.core.CallErrors, errors:
for backend, error, backtrace in errors:
@ -59,7 +59,7 @@ class Boobank(ConsoleApplication):
return backend.iter_operations(account)
try:
for backend, operation in self.weboob.do(do):
for backend, operation in self.do(do):
self.format(operation, backend.name)
total += operation.amount
except weboob.core.CallErrors, errors: