Структурирование названий файлов

merge-requests/1/head
Vladislav Klychkov 2 years ago
parent aebcace966
commit f34d675f90

@ -32,7 +32,7 @@ logDescriptionMsg = 'Лог за текущие сутки'
dropdownInit = 'Выберите робота...' dropdownInit = 'Выберите робота...'
dropdownRobot1 = 'Робот на вакансию 1' dropdownRobot1 = 'Робот на вакансию 1'
dropdownRobot2 = 'робот на вакансию 2' dropdownRobot2 = 'Робот на вакансию 2'
@ -167,5 +167,5 @@ html = f'''<!doctype html>
</html>''' </html>'''
with open('test.html', 'w', encoding='UTF-8') as file: with open('index.html', 'w', encoding='UTF-8') as file:
file.write(html) file.write(html)

@ -34,11 +34,11 @@ def get_file():
@app.get(path="/HR_officer01/scripts",tags=["HR_officer01"]) @app.get(path="/HR_officer01/scripts",tags=["HR_officer01"])
def get_file(): 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"]) @app.get(path="/HR_officer01/styles",tags=["HR_officer01"])
def get_file(): 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 # Пример создания функции на сервере (FASTAPI) /test/threads
@ -78,7 +78,7 @@ else:
# Autoinit control panels starts with CP_ # Autoinit control panels starts with CP_
lPyModules = Orchestrator.OrchestratorPySearchInit(inGlobPatternStr="ControlPanel\\CP_*.py", inDefStr="SettingsUpdate", inDefArgNameGSettingsStr="inGSettings", inAsyncInitBool=True) lPyModules = Orchestrator.OrchestratorPySearchInit(inGlobPatternStr="ControlPanel\\CP_*.py", inDefStr="SettingsUpdate", inDefArgNameGSettingsStr="inGSettings", inAsyncInitBool=True)
lCPManager = Orchestrator.Managers.ControlPanel(inControlPanelNameStr="TestControlPanel", 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 # Call the orchestrator def
Orchestrator.Orchestrator(inGSettings=gSettings, inDumpRestoreBool=False) Orchestrator.Orchestrator(inGSettings=gSettings, inDumpRestoreBool=False)

Loading…
Cancel
Save