|
|
|
@ -138,18 +138,18 @@ def Monitor_ControlPanelDictGet(inRequest,inGlobalDict):
|
|
|
|
|
lResultJSON["RenderRobotList"].append(lItemResultDict)
|
|
|
|
|
except Exception as e:
|
|
|
|
|
if lL: lL.exception(f"Error in control panel. CP item {lItem}. Exception is below")
|
|
|
|
|
# Iterate throught the RDP list
|
|
|
|
|
for lRDPSessionKeyStrItem in inGlobalDict["RobotRDPActive"]["RDPList"]:
|
|
|
|
|
lRDPConfiguration = inGlobalDict["RobotRDPActive"]["RDPList"][
|
|
|
|
|
lRDPSessionKeyStrItem] # Get the configuration dict
|
|
|
|
|
lDataItemDict = {"SessionKeyStr": "", "SessionHexStr": "", "IsFullScreenBool": False,
|
|
|
|
|
"IsIgnoredBool": False} # Template
|
|
|
|
|
lDataItemDict["SessionKeyStr"] = lRDPSessionKeyStrItem # Session key str
|
|
|
|
|
lDataItemDict["SessionHexStr"] = lRDPConfiguration["SessionHex"] # Session Hex
|
|
|
|
|
lDataItemDict["IsFullScreenBool"] = True if lRDPSessionKeyStrItem == inGlobalDict["RobotRDPActive"][
|
|
|
|
|
"FullScreenRDPSessionKeyStr"] else False # Check the full screen for rdp window
|
|
|
|
|
lDataItemDict["IsIgnoredBool"] = lRDPConfiguration["SessionIsIgnoredBool"] # Is ignored
|
|
|
|
|
lResultJSON["RenderRDPList"].append(lDataItemDict)
|
|
|
|
|
# Iterate throught the RDP list
|
|
|
|
|
for lRDPSessionKeyStrItem in inGlobalDict["RobotRDPActive"]["RDPList"]:
|
|
|
|
|
lRDPConfiguration = inGlobalDict["RobotRDPActive"]["RDPList"][
|
|
|
|
|
lRDPSessionKeyStrItem] # Get the configuration dict
|
|
|
|
|
lDataItemDict = {"SessionKeyStr": "", "SessionHexStr": "", "IsFullScreenBool": False,
|
|
|
|
|
"IsIgnoredBool": False} # Template
|
|
|
|
|
lDataItemDict["SessionKeyStr"] = lRDPSessionKeyStrItem # Session key str
|
|
|
|
|
lDataItemDict["SessionHexStr"] = lRDPConfiguration["SessionHex"] # Session Hex
|
|
|
|
|
lDataItemDict["IsFullScreenBool"] = True if lRDPSessionKeyStrItem == inGlobalDict["RobotRDPActive"][
|
|
|
|
|
"FullScreenRDPSessionKeyStr"] else False # Check the full screen for rdp window
|
|
|
|
|
lDataItemDict["IsIgnoredBool"] = lRDPConfiguration["SessionIsIgnoredBool"] # Is ignored
|
|
|
|
|
lResultJSON["RenderRDPList"].append(lDataItemDict)
|
|
|
|
|
# Send message back to client
|
|
|
|
|
message = json.dumps(lResultJSON)
|
|
|
|
|
# Write content as utf-8 data
|
|
|
|
|