summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-09-15 14:27:27 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-09-15 14:27:27 +0200
commitb9f1c57fdd6097e776235c105c58c29f84399523 (patch)
tree5213d53f6f41f0bae10f13b04964ad201883696c /web
parente49caeec12b36742044d1e306de382f54995576c (diff)
Add handlers for python_{push,pull} requests
Will be reimplemented asynchronously.
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 7f1b2e4..c4c8691 100644
--- a/web/main.js
+++ b/web/main.js
@@ -132,6 +132,16 @@ var guiHandlers = {
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_pull': function actionPythonPull(session, message) {
+ logger.debug('Received python_pull 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();