From 4fa9895854a2e8b842b8afd9a6f63e559971bae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 6 Apr 2018 16:23:20 +0200 Subject: [PATCH] Use ServerUplinkConnector with new name TFWServerConnector --- solvable/src/event_handler_main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/solvable/src/event_handler_main.py b/solvable/src/event_handler_main.py index 4a2ee6b..2f4f825 100644 --- a/solvable/src/event_handler_main.py +++ b/solvable/src/event_handler_main.py @@ -1,7 +1,7 @@ from tornado.ioloop import IOLoop from tfw.components import SourceCodeEventHandler, TerminadoEventHandler, ProcessManagingEventHandler, BashMonitor -from tfw.networking import MessageSender, ServerUplinkConnector +from tfw.networking import MessageSender, TFWServerConnector from tfw.config import TFWENV from tfw.config.logs import logging @@ -17,7 +17,7 @@ def selectdir(history): try: cmd = history[-1].split() if cmd[0] == 'selectdir': - ServerUplinkConnector().send_to_eventhandler('webide', + TFWServerConnector().send_to_eventhandler('webide', {'data': {'command': 'selectdir', 'directory': cmd[1]}}) except IndexError: @@ -29,7 +29,7 @@ def toggle_next(history): try: cmd = history[-1].split() if cmd[0] == 'togglenext': - ServerUplinkConnector().send('messagecontrol', + TFWServerConnector().send('messagecontrol', {'data': {'command': 'showbutton', 'next_visibility': toggle_next.button_state}}) except IndexError: