From f34d675f90b500e63dfbf6214b0c314ea4b497cc Mon Sep 17 00:00:00 2001 From: Vladislav Klychkov Date: Tue, 6 Sep 2022 13:41:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D1=82=D1=80=D1=83=D0=BA=D1=82=D1=83?= =?UTF-8?q?=D1=80=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BD?= =?UTF-8?q?=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D0=B9=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Demo/HR_officer01/{styles.css => HR_officer01.css} | 0 Orchestrator/Demo/HR_officer01/{list.js => HR_officer01.js} | 0 Orchestrator/Demo/HR_officer01/config.py | 4 ++-- Orchestrator/Demo/HR_officer01/{test.html => index.html} | 0 Orchestrator/config.py | 6 +++--- 5 files changed, 5 insertions(+), 5 deletions(-) rename Orchestrator/Demo/HR_officer01/{styles.css => HR_officer01.css} (100%) rename Orchestrator/Demo/HR_officer01/{list.js => HR_officer01.js} (100%) rename Orchestrator/Demo/HR_officer01/{test.html => index.html} (100%) diff --git a/Orchestrator/Demo/HR_officer01/styles.css b/Orchestrator/Demo/HR_officer01/HR_officer01.css similarity index 100% rename from Orchestrator/Demo/HR_officer01/styles.css rename to Orchestrator/Demo/HR_officer01/HR_officer01.css diff --git a/Orchestrator/Demo/HR_officer01/list.js b/Orchestrator/Demo/HR_officer01/HR_officer01.js similarity index 100% rename from Orchestrator/Demo/HR_officer01/list.js rename to Orchestrator/Demo/HR_officer01/HR_officer01.js diff --git a/Orchestrator/Demo/HR_officer01/config.py b/Orchestrator/Demo/HR_officer01/config.py index e7b506cd..c4670e38 100644 --- a/Orchestrator/Demo/HR_officer01/config.py +++ b/Orchestrator/Demo/HR_officer01/config.py @@ -32,7 +32,7 @@ logDescriptionMsg = 'Лог за текущие сутки' dropdownInit = 'Выберите робота...' dropdownRobot1 = 'Робот на вакансию 1' -dropdownRobot2 = 'робот на вакансию 2' +dropdownRobot2 = 'Робот на вакансию 2' @@ -167,5 +167,5 @@ html = f''' ''' -with open('test.html', 'w', encoding='UTF-8') as file: +with open('index.html', 'w', encoding='UTF-8') as file: file.write(html) diff --git a/Orchestrator/Demo/HR_officer01/test.html b/Orchestrator/Demo/HR_officer01/index.html similarity index 100% rename from Orchestrator/Demo/HR_officer01/test.html rename to Orchestrator/Demo/HR_officer01/index.html diff --git a/Orchestrator/config.py b/Orchestrator/config.py index 804e44e5..b31adcd0 100755 --- a/Orchestrator/config.py +++ b/Orchestrator/config.py @@ -34,11 +34,11 @@ def get_file(): @app.get(path="/HR_officer01/scripts",tags=["HR_officer01"]) def get_file(): - return FileResponse(CrossOS.PathStr("Demo\\HR_officer01\\list.js")) + return FileResponse(CrossOS.PathStr("Demo\\HR_officer01\\HR_officer01.js")) @app.get(path="/HR_officer01/styles",tags=["HR_officer01"]) def get_file(): - return FileResponse(CrossOS.PathStr("Demo\\HR_officer01\\styles.css")) + return FileResponse(CrossOS.PathStr("Demo\\HR_officer01\\HR_officer01.css")) # Пример создания функции на сервере (FASTAPI) /test/threads @@ -78,7 +78,7 @@ else: # Autoinit control panels starts with CP_ lPyModules = Orchestrator.OrchestratorPySearchInit(inGlobPatternStr="ControlPanel\\CP_*.py", inDefStr="SettingsUpdate", inDefArgNameGSettingsStr="inGSettings", inAsyncInitBool=True) lCPManager = Orchestrator.Managers.ControlPanel(inControlPanelNameStr="TestControlPanel", - inRefreshHTMLJinja2TemplatePathStr=CrossOS.PathStr("D:\\For work\\RPA\\OpenRPA\\Orchestrator\\Demo\\HR_officer01\\test.html"), inJinja2TemplateRefreshBool = True) + inRefreshHTMLJinja2TemplatePathStr=CrossOS.PathStr("D:\\For work\\RPA\\OpenRPA\\Orchestrator\\Demo\\HR_officer01\\index.html"), inJinja2TemplateRefreshBool = True) # Call the orchestrator def Orchestrator.Orchestrator(inGSettings=gSettings, inDumpRestoreBool=False)