|
|
|
@ -915,7 +915,7 @@ def WebURLConnectFolder(inMethodStr, inURLStr, inMatchTypeStr, inFolderPathStr,
|
|
|
|
|
"MatchType": inMatchTypeStr, # "BeginWith|Contains|Equal|EqualCase",
|
|
|
|
|
# "ResponseFilePath": "", #Absolute or relative path
|
|
|
|
|
"ResponseFolderPath": lFolderPathStr, # Absolute or relative path
|
|
|
|
|
"ResponseContentType": "application/octet-stream", #HTTP Content-type
|
|
|
|
|
"ResponseContentType": None, #HTTP Content-type
|
|
|
|
|
#"ResponseDefRequestGlobal": inDef #Function with str result
|
|
|
|
|
"UACBool": inUACBool,
|
|
|
|
|
"UseCacheBool": inUseCacheBool
|
|
|
|
@ -923,7 +923,7 @@ def WebURLConnectFolder(inMethodStr, inURLStr, inMatchTypeStr, inFolderPathStr,
|
|
|
|
|
inGSettings["ServerDict"]["URLList"].append(lURLItemDict)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def WebURLConnectFile(inMethodStr, inURLStr, inMatchTypeStr, inFilePathStr, inContentTypeStr="application/octet-stream", inGSettings = None, inUACBool = None, inUseCacheBool = False):
|
|
|
|
|
def WebURLConnectFile(inMethodStr, inURLStr, inMatchTypeStr, inFilePathStr, inContentTypeStr=None, inGSettings = None, inUACBool = None, inUseCacheBool = False):
|
|
|
|
|
"""
|
|
|
|
|
Connect URL to File
|
|
|
|
|
"inMethodStr":"GET|POST",
|
|
|
|
@ -936,7 +936,7 @@ def WebURLConnectFile(inMethodStr, inURLStr, inMatchTypeStr, inFilePathStr, inCo
|
|
|
|
|
:param inURLStr:
|
|
|
|
|
:param inMatchTypeStr:
|
|
|
|
|
:param inFilePathStr:
|
|
|
|
|
:param inContentTypeStr:
|
|
|
|
|
:param inContentTypeStr: If none - autodetect
|
|
|
|
|
:param inUACBool: default: None; True - check user access before do this URL item. None - get Server flag if ask user
|
|
|
|
|
:param inUseCacheBool: True - cache this page - dont open ever
|
|
|
|
|
"""
|
|
|
|
|