diff --git a/weboob/applications/boobank/boobank.py b/weboob/applications/boobank/boobank.py index 39e7ff42..fe0edabc 100644 --- a/weboob/applications/boobank/boobank.py +++ b/weboob/applications/boobank/boobank.py @@ -76,6 +76,7 @@ class Boobank(ReplApplication): for backend, operation in self.do(do, backends=names): self.format(operation) + self.flush() def complete_coming(self, text, line, *ignored): args = line.split(' ') @@ -97,6 +98,7 @@ class Boobank(ReplApplication): for backend, operation in self.do(do, backends=names): self.format(operation) + self.flush() def complete_transfer(self, text, line, *ignored): args = line.split(' ') @@ -129,3 +131,4 @@ class Boobank(ReplApplication): for backend, id_transfer in self.do(do, backends=names): self.format((('Transfer', str(id_transfer)),)) + self.flush() diff --git a/weboob/applications/chatoob/chatoob.py b/weboob/applications/chatoob/chatoob.py index 5cc4d3b4..d4970e68 100644 --- a/weboob/applications/chatoob/chatoob.py +++ b/weboob/applications/chatoob/chatoob.py @@ -43,6 +43,7 @@ class Chatoob(ReplApplication): """ for backend, contact in self.do('iter_contacts', status=Contact.STATUS_ONLINE, caps=ICapContact): self.format(contact) + self.flush() def do_messages(self, line): """ @@ -52,6 +53,7 @@ class Chatoob(ReplApplication): """ for backend, message in self.do('iter_chat_messages'): self.format(message) + self.flush() def do_send(self, line): """ diff --git a/weboob/applications/traveloob/traveloob.py b/weboob/applications/traveloob/traveloob.py index 0e822a86..85f9f2c2 100644 --- a/weboob/applications/traveloob/traveloob.py +++ b/weboob/applications/traveloob/traveloob.py @@ -33,12 +33,13 @@ class Traveloob(ReplApplication): def do_stations(self, pattern): """ - search PATTERN + stations PATTERN Search stations. """ for backend, station in self.do('iter_station_search', pattern): self.format(station) + self.flush() def do_departures(self, line): """ @@ -66,3 +67,4 @@ class Traveloob(ReplApplication): for backend, departure in self.do('iter_station_departures', station_id, arrival_id, backends=backends): self.format(departure) + self.flush() diff --git a/weboob/applications/weboorrents/weboorrents.py b/weboob/applications/weboorrents/weboorrents.py index 183de12d..cec66575 100644 --- a/weboob/applications/weboorrents/weboorrents.py +++ b/weboob/applications/weboorrents/weboorrents.py @@ -48,6 +48,8 @@ class Weboorrents(ReplApplication): if not found: print >>sys.stderr, 'Torrent "%s" not found' % id + else: + self.flush() def do_getfile(self, line): """ @@ -83,3 +85,4 @@ class Weboorrents(ReplApplication): self.set_formatter_header(u'Search pattern: %s' % pattern if pattern else u'Latest torrents') for backend, torrent in self.do('iter_torrents', pattern=pattern): self.format(torrent) + self.flush() diff --git a/weboob/applications/wetboobs/wetboobs.py b/weboob/applications/wetboobs/wetboobs.py index dd53b23a..15b22ace 100644 --- a/weboob/applications/wetboobs/wetboobs.py +++ b/weboob/applications/wetboobs/wetboobs.py @@ -40,6 +40,7 @@ class WetBoobs(ReplApplication): """ for backend, city in self.do('iter_city_search', pattern): self.format(city) + self.flush() def do_current(self, city): """ @@ -50,6 +51,7 @@ class WetBoobs(ReplApplication): try: for backend, current in self.do('get_current', city): self.format(current) + self.flush() except CallErrors, e: for error in e: if isinstance(error, CityNotFound): @@ -66,6 +68,7 @@ class WetBoobs(ReplApplication): try: for backend, forecast in self.do('iter_forecast', city): self.format(forecast) + self.flush() except CallErrors, e: for error in e: if isinstance(error, CityNotFound):