|
|
|
@ -24,7 +24,7 @@ import uuid
|
|
|
|
|
import datetime
|
|
|
|
|
import os #for path operations
|
|
|
|
|
from http import cookies
|
|
|
|
|
global gSettingsDict
|
|
|
|
|
gSettingsDict = {}
|
|
|
|
|
from . import ServerSettings
|
|
|
|
|
from . import __Orchestrator__
|
|
|
|
|
import copy
|
|
|
|
@ -264,7 +264,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
|
|
|
|
|
# Def to get hierarchy of the current user roles
|
|
|
|
|
# if return {} - all is available
|
|
|
|
|
def UserRoleHierarchyGet(self):
|
|
|
|
|
global gSettingsDict
|
|
|
|
|
#global gSettingsDict
|
|
|
|
|
lDomainUpperStr = self.OpenRPA["Domain"].upper()
|
|
|
|
|
lUserUpperStr = self.OpenRPA["User"].upper()
|
|
|
|
|
return gSettingsDict.get("ServerDict", {}).get("AccessUsers", {}).get("RuleDomainUserDict", {}).get((lDomainUpperStr, lUserUpperStr), {}).get("RoleHierarchyAllowedDict", {})
|
|
|
|
@ -432,7 +432,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
|
|
|
|
|
def do_GET(self):
|
|
|
|
|
try:
|
|
|
|
|
global gSettingsDict
|
|
|
|
|
self.timeout=gSettingsDict["ServerDict"]["RequestTimeoutSecFloat"]
|
|
|
|
|
#self.timeout=gSettingsDict["ServerDict"]["RequestTimeoutSecFloat"]
|
|
|
|
|
self.request.settimeout(gSettingsDict["ServerDict"]["RequestTimeoutSecFloat"])
|
|
|
|
|
threading.current_thread().request = self
|
|
|
|
|
self.OpenRPA = {}
|
|
|
|
@ -523,7 +523,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
|
|
|
|
|
def do_POST(self):
|
|
|
|
|
try:
|
|
|
|
|
global gSettingsDict
|
|
|
|
|
self.timeout=gSettingsDict["ServerDict"]["RequestTimeoutSecFloat"]
|
|
|
|
|
#self.timeout=gSettingsDict["ServerDict"]["RequestTimeoutSecFloat"]
|
|
|
|
|
self.request.settimeout(gSettingsDict["ServerDict"]["RequestTimeoutSecFloat"])
|
|
|
|
|
threading.current_thread().request = self
|
|
|
|
|
lL = gSettingsDict["Logger"]
|
|
|
|
|