From f60e40fc9cf66c00bf639ffc7c9223f2b2bbaf2b Mon Sep 17 00:00:00 2001 From: juke Date: Tue, 15 Feb 2011 17:42:23 +0100 Subject: [PATCH] docstring do_export_thread closes #500 --- weboob/applications/boobmsg/boobmsg.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/weboob/applications/boobmsg/boobmsg.py b/weboob/applications/boobmsg/boobmsg.py index b8c5cca8..f55b7945 100644 --- a/weboob/applications/boobmsg/boobmsg.py +++ b/weboob/applications/boobmsg/boobmsg.py @@ -287,15 +287,20 @@ class Boobmsg(ReplApplication): self.flush() def do_export_thread(self, arg): - id, backend_name = self.parse_id(arg) - cmd = self.do('get_thread', id, backends=backend_name) + """ + export_thread + + Export a thread + """ + _id, backend_name = self.parse_id(arg) + cmd = self.do('get_thread', _id, backends=backend_name) if self.options.filename: output = self.options.filename else: output = sys.stdout for backend, thread in cmd: - for m in thread.iter_all_messages(): - self.format(m, output=output) + for msg in thread.iter_all_messages(): + self.format(msg, output=output) def do_show(self, arg):