|
|
|
@ -458,15 +458,14 @@ def pyOpenRPA_Agent_A2O(inRequest, inGSettings):
|
|
|
|
|
inGSettings["AgentDict"][lAgentDictItemKeyTurple]["ActivityList"] = lAgentDictActivityListNew
|
|
|
|
|
|
|
|
|
|
from pyOpenRPA.Utils.Render import Render
|
|
|
|
|
gPackageResourcePathStr = os.path.join(*(CrossOS.PathSplitList(__file__)[:-2]))
|
|
|
|
|
gRender = Render(inTemplatePathStr=os.path.join(gPackageResourcePathStr, "Resources","Web","orpa","orc.xhtml"))
|
|
|
|
|
lFileStr = CrossOS.PathJoinList(CrossOS.PathSplitList(__file__)[:-2] + ["Resources","Web","orpa","orc.xhtml"])
|
|
|
|
|
gRender = Render(inTemplatePathStr=lFileStr,inTemplateRefreshBool=True)
|
|
|
|
|
|
|
|
|
|
def pyOpenRPA_Index():
|
|
|
|
|
# Пример использования
|
|
|
|
|
global gRender
|
|
|
|
|
gRender.TemplatePathSet(inDataDict={"const":"value1"})
|
|
|
|
|
lStr = gRender.Generate()
|
|
|
|
|
__Orchestrator__.WebRequestResponseSend(inResponeStr=lStr,inContentTypeStr="html/text")
|
|
|
|
|
__Orchestrator__.WebRequestResponseSend(inResponeStr=lStr,inContentTypeStr="text/html")
|
|
|
|
|
|
|
|
|
|
def SettingsUpdate(inGlobalConfiguration):
|
|
|
|
|
import os
|
|
|
|
@ -486,8 +485,10 @@ def SettingsUpdate(inGlobalConfiguration):
|
|
|
|
|
# "ResponseDefRequestGlobal": None #Function with str result
|
|
|
|
|
#}
|
|
|
|
|
#Orchestrator basic dependencies # Index page in server.py because of special settings
|
|
|
|
|
{"Method":"GET", "URL": gSettingsDict["ServerDict"]["URLIndexStr"],"MatchType": "EqualNoParam", "ResponseDef": pyOpenRPA_Index},
|
|
|
|
|
{"Method":"GET", "URL": gSettingsDict["ServerDict"]["URLIndexStr"],"MatchType": "EqualNoParam", "ResponseDefRequestGlobal": pyOpenRPA_Index},
|
|
|
|
|
{"Method":"GET", "URL": "/metadata.json", "MatchType": "EqualCase", "ResponseFilePath": os.path.join(lOrchestratorFolder, "..\\Resources\\Web\\orpa\\metadata.json"), "ResponseContentType": "application/json"},
|
|
|
|
|
{"Method":"GET", "URL": "/Index.js", "MatchType": "EqualCase", "ResponseFilePath": os.path.join(lOrchestratorFolder, "Web\\Index.js"), "ResponseContentType": "text/javascript"},
|
|
|
|
|
{"Method":"GET", "URL": "/orpa/Resources/", "MatchType": "BeginWith", "ResponseFolderPath": os.path.join(lOrchestratorFolder, "..\\Resources"),"UACBool":False, "UseCacheBool": True},
|
|
|
|
|
{"Method":"GET", "URL": "/3rdParty/Semantic-UI-CSS-master/semantic.min.css", "MatchType": "EqualCase", "ResponseFilePath": os.path.join(lOrchestratorFolder, "..\\Resources\\Web\\Semantic-UI-CSS-master\\semantic.min.css"), "ResponseContentType": "text/css", "UACBool":False, "UseCacheBool": True},
|
|
|
|
|
{"Method":"GET", "URL": "/3rdParty/Semantic-UI-CSS-master/semantic.min.js", "MatchType": "EqualCase", "ResponseFilePath": os.path.join(lOrchestratorFolder, "..\\Resources\\Web\\Semantic-UI-CSS-master\\semantic.min.js"), "ResponseContentType": "application/javascript", "UACBool":False, "UseCacheBool": True},
|
|
|
|
|
{"Method":"GET", "URL": "/3rdParty/jQuery/jquery-3.1.1.min.js", "MatchType": "EqualCase", "ResponseFilePath": os.path.join(lOrchestratorFolder, "..\\Resources\\Web\\jQuery\\jquery-3.1.1.min.js"), "ResponseContentType": "application/javascript", "UACBool":False, "UseCacheBool": True},
|
|
|
|
|