|
|
|
@ -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)
|
|
|
|
|
|
|
|
|
|