summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-09-22 11:33:43 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-09-22 11:33:43 +0200
commit15f35dc1c2eb50a8140f1a0abf45d5aa25fdf66b (patch)
treef0d793936f66467df6f711944b9d7adae893dde1 /web
parentdce8ec719b1d85acf3c753effae3f28629dd847c (diff)
Add support for execing the user's Python program
Diffstat (limited to 'web')
-rw-r--r--web/main.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/web/main.js b/web/main.js
index 03e9dad..fb393c8 100644
--- a/web/main.js
+++ b/web/main.js
@@ -132,11 +132,21 @@ var guiHandlers = {
sendDataToPython(message).then(session.send, session.end).done();
},
+ 'python_exec': function actionPythonExec(session, message) {
+ logger.debug('Received python_exec from GUI');
+ sendDataToPython(message).then(session.send, session.end).done();
+ },
+
'python_push': function actionPythonPush(session, message) {
logger.debug('Received python_push from GUI');
sendDataToPython(message).then(session.send, session.end).done();
},
+ 'python_stop': function actionPythonStop(session, message) {
+ logger.debug('Received python_stop from GUI');
+ sendDataToPython(message).then(session.send, session.end).done();
+ },
+
'hint': function actionHint(session, message) {
logger.debug('Received hint from GUI');
sendDataToPython(message).then(session.send, session.end).done();