From 026a152dfc98e74d238271cd21cf161a507742d9 Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Sun, 22 Nov 2020 21:09:17 +0300 Subject: [PATCH] +- Create Web HTML / JS generators [pyOpenRPA.Orchestrator.Web.Basic] +- - def JSEscapeForHTMLInline(inJSStr): # Escape JS to the safe JS for the inline JS in HTML tags ATTENTION! Use it only if want to paste JS into HTML tag - not in ", + "SubheaderText":f"", "BodyKeyValueList":[ {"Key": "Client", "Value": '
'}, {"Key": "Server", "Value": inGSettings["VersionStr"]}, diff --git a/Orchestrator/OrchestratorSettings.py b/Orchestrator/OrchestratorSettings.py index c7e3d7b9..f5ccf58d 100644 --- a/Orchestrator/OrchestratorSettings.py +++ b/Orchestrator/OrchestratorSettings.py @@ -39,6 +39,9 @@ if __name__ == "__main__": # New init way - allow run as module -m PyOpenRPA.Orc from ControlPanel import CP_VersionCheck CP_VersionCheck.SettingsUpdate(inGSettings=gSettings) + from ControlPanel import CP_Test + CP_Test.SettingsUpdate(inGSettings=gSettings) + # Call the orchestrator def Orchestrator.Orchestrator(inGSettings=gSettings) diff --git a/Sources/pyOpenRPA/Orchestrator/Web/Basic.py b/Sources/pyOpenRPA/Orchestrator/Web/Basic.py new file mode 100644 index 00000000..96e5992c --- /dev/null +++ b/Sources/pyOpenRPA/Orchestrator/Web/Basic.py @@ -0,0 +1,26 @@ + +# Escape JS to the safe JS for the inline JS in HTML tags ATTENTION! Use it only if want to paste JS into HTML tag - not in