new command 'query'
This commit is contained in:
parent
b4fb1a43fa
commit
8f61fbd0d7
1 changed files with 11 additions and 0 deletions
|
|
@ -117,6 +117,17 @@ class HaveSex(ReplApplication):
|
||||||
|
|
||||||
return True
|
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):
|
def edit_optims(self, backend_names, optims_names, stop=False):
|
||||||
if optims_names is None:
|
if optims_names is None:
|
||||||
print >>sys.stderr, 'Error: missing parameters.'
|
print >>sys.stderr, 'Error: missing parameters.'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue