mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 11:12:55 +00:00 
			
		
		
		
	Make seppuku command trigger frontend reload
This commit is contained in:
		@@ -37,11 +37,12 @@ class TestCommands(TerminalCommands):
 | 
				
			|||||||
    def command_seppuku_tfw(self, *args):
 | 
					    def command_seppuku_tfw(self, *args):
 | 
				
			||||||
        seppuku = ('nohup sh -c "supervisorctl restart tfwserver event_handler_main" &> /dev/null & '
 | 
					        seppuku = ('nohup sh -c "supervisorctl restart tfwserver event_handler_main" &> /dev/null & '
 | 
				
			||||||
                   'clear && echo "Committed seppuku! :)" && sleep infinity')
 | 
					                   'clear && echo "Committed seppuku! :)" && sleep infinity')
 | 
				
			||||||
        TFWServerConnector().send_to_eventhandler({
 | 
					        uplink = TFWServerConnector()
 | 
				
			||||||
            'key': 'shell',
 | 
					        uplink.send_to_eventhandler({'key': 'shell',
 | 
				
			||||||
                                     'data': {'command': 'write',
 | 
					                                     'data': {'command': 'write',
 | 
				
			||||||
                     'shellcmd': f'{seppuku}\n'}
 | 
					                                              'shellcmd': f'{seppuku}\n'}})
 | 
				
			||||||
        })
 | 
					        uplink.send({'key': 'dashboard',
 | 
				
			||||||
 | 
					                     'data' :{'command': 'reload_frontend'}})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def command_changelayout(self, *args):
 | 
					    def command_changelayout(self, *args):
 | 
				
			||||||
        message = {'key': 'dashboard',
 | 
					        message = {'key': 'dashboard',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user