From e5056e3ee19cb2e73e9848f1515293c5a29b9f9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Thu, 31 May 2018 14:20:08 +0200 Subject: [PATCH] Comply with changes in TFW API --- solvable/src/event_handler_main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/solvable/src/event_handler_main.py b/solvable/src/event_handler_main.py index 077a642..a6ecd8e 100644 --- a/solvable/src/event_handler_main.py +++ b/solvable/src/event_handler_main.py @@ -42,7 +42,7 @@ class TestCommands(TerminalCommands): 'key': 'shell', 'data': { 'command': 'write', - 'shellcmd': f'sendmessage {message_template}' + 'value': f'sendmessage {message_template}' } }) else: @@ -61,13 +61,13 @@ class TestCommands(TerminalCommands): 'key': 'shell', 'data': { 'command': 'write', - 'shellcmd': f'{seppuku}\n' + 'value': f'{seppuku}\n' } }) uplink.send({ 'key': 'dashboard', 'data': { - 'command': 'reload_frontend' + 'command': 'reloadFrontend' } }) @@ -98,6 +98,7 @@ if __name__ == '__main__': commands = TestCommands(bashrc=f'/home/{TAOENV.USER}/.bashrc') terminal.historymonitor.subscribe_callback(commands.callback) + terminal.historymonitor.subscribe_callback(cenator) try: IOLoop.instance().start()