From ac1ea2004cdb34c83115d11b0c3a0c9c2f93a726 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 22 Sep 2015 11:33:54 +0200 Subject: Add support for run/stop in the Python interface --- js/codeq/comms.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'js/codeq/comms.js') diff --git a/js/codeq/comms.js b/js/codeq/comms.js index 9e69526..b04a2fc 100644 --- a/js/codeq/comms.js +++ b/js/codeq/comms.js @@ -250,13 +250,18 @@ return this.send(query); }, - sendPush: function commsSendPush (json) { + sendPythonExec: function commsSendPythonExec (json) { + json['action'] = 'python_exec'; + return this.send(json); + }, + + sendPythonPush: function commsSendPythonPush (json) { json['action'] = 'python_push'; return this.send(json); }, - sendPull: function commsSendPull (json) { - json['action'] = 'python_pull'; + sendPythonStop: function commsSendPythonStop (json) { + json['action'] = 'python_stop'; return this.send(json); }, -- cgit v1.2.1