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

@ -36,7 +36,7 @@ class Traveloob(ConsoleApplication):
@ConsoleApplication.command('Search stations')
def command_stations(self, pattern):
self.load_backends(ICapTravel)
for backend, station in self.weboob.do('iter_station_search', pattern):
for backend, station in self.do('iter_station_search', pattern):
self.format(station, backend.name)
@ConsoleApplication.command('List all departures for a given station')
@ -58,5 +58,5 @@ class Traveloob(ConsoleApplication):
backends = None
self.load_backends(ICapTravel, names=backends)
for backend, departure in self.weboob.do('iter_station_departures', station_id, arrival_id):
for backend, departure in self.do('iter_station_departures', station_id, arrival_id):
self.format(departure, backend.name)