Fixed the send button in the webclient; made the prompt command work with the webclient (still not displaying correctly)
This commit is contained in:
parent
aa1b8357d8
commit
039bb0c540
3 changed files with 25 additions and 17 deletions
|
|
@ -156,10 +156,12 @@ class WebSocketClient(Protocol, Session):
|
|||
text = args[0]
|
||||
if text is None:
|
||||
return
|
||||
else:
|
||||
return
|
||||
flags = self.protocol_flags
|
||||
text = to_str(text, force_string=True)
|
||||
|
||||
options = kwargs.get("options", {})
|
||||
options = kwargs.pop("options", {})
|
||||
raw = options.get("raw", False)
|
||||
nomarkup = options.get("nomarkup", False)
|
||||
screenreader = options.get("screenreader", flags.get("SCREENREADER", False))
|
||||
|
|
@ -174,6 +176,7 @@ class WebSocketClient(Protocol, Session):
|
|||
args[0] = text
|
||||
else:
|
||||
args[0] = parse_html(text, strip_ansi=nomarkup)
|
||||
print "send_text:", cmd, args, kwargs
|
||||
|
||||
# send to client on required form [cmdname, args, kwargs]
|
||||
self.sendLine(json.dumps([cmd, args, kwargs]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue