From 8f61fbd0d7457360cfbde3a91df1d95ba0d8316e Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 15 Nov 2010 13:22:55 +0100 Subject: [PATCH] new command 'query' --- weboob/applications/havesex/havesex.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/weboob/applications/havesex/havesex.py b/weboob/applications/havesex/havesex.py index 1c5dbf08..c835cbb6 100644 --- a/weboob/applications/havesex/havesex.py +++ b/weboob/applications/havesex/havesex.py @@ -117,6 +117,17 @@ class HaveSex(ReplApplication): return True + def do_query(self, id): + """ + query ID + + Send a query to someone. + """ + _id, backend_name = self.parse_id(id) + + for backend, query in self.do('send_query', _id, backends=backend_name): + print '%s' % query.message + def edit_optims(self, backend_names, optims_names, stop=False): if optims_names is None: print >>sys.stderr, 'Error: missing parameters.'