report status and target in update_main

+ add SECoP commands [WIP]
+ fix case 4 (error icon) in updateStatus (SEAWebClientCommunication.js)
This commit is contained in:
2025-04-22 18:02:25 +02:00
parent 5c1c94bffc
commit 27f60e1187
3 changed files with 47 additions and 50 deletions

View File

@ -88,10 +88,14 @@ class Client(HandlerBase):
return dict(type='accept-console')
def w_sendcommand(self, command):
result = None
for node in self.nodes.values():
if node.handle_command(command):
result = node.handle_command(command)
if result is not None:
break
return dict(type='accept-command')
if isinstance(result, str):
return dict(type='accept-command', result=result)
return dict(type='accept-command') # TODO: how to handle result is None?
def info(self):
return ["na"]