capabilities objets inherit from CapBaseObject (refs #369)
This commit is contained in:
parent
33d1574878
commit
e980e040ba
20 changed files with 126 additions and 102 deletions
|
|
@ -37,7 +37,7 @@ class Traveloob(ConsoleApplication):
|
|||
def command_stations(self, pattern):
|
||||
self.load_backends(ICapTravel)
|
||||
for backend, station in self.do('iter_station_search', pattern):
|
||||
self.format(station, backend.name)
|
||||
self.format(station)
|
||||
|
||||
@ConsoleApplication.command('List all departures for a given station')
|
||||
def command_departures(self, station, arrival=None):
|
||||
|
|
@ -59,4 +59,4 @@ class Traveloob(ConsoleApplication):
|
|||
|
||||
self.load_backends(ICapTravel, names=backends)
|
||||
for backend, departure in self.do('iter_station_departures', station_id, arrival_id):
|
||||
self.format(departure, backend.name)
|
||||
self.format(departure)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue