def SettingsUpdate(inDict): ################################################# #General MethodMatchURL list (no domain/user) lRuleMethodMatchURLBeforeList=[ { "Method":"GET", "MatchType":"Equal", "URL":"/", "FlagAccess": True } ] #Append to global list inDict["Server"]["AccessUsers"]["RuleMethodMatchURLBeforeList"]=inDict["Server"]["AccessUsers"]["RuleMethodMatchURLBeforeList"]+lRuleMethodMatchURLBeforeList ################################################## #""/"ND" MethodMatchURLList l__ND_RuleMethodMatchURLBeforeList={ ("","ND"): { "MethodMatchURLBeforeList": [ { "Method":"GET", "MatchType":"Beginwith", "URL":"/", #"FlagAccessDefRequestGlobalAuthenticate": TestDef "FlagAccess": True } ] } } #Append to global list inDict["Server"]["AccessUsers"]["RuleDomainUserDict"].update(l__ND_RuleMethodMatchURLBeforeList) #Return current dict return inDict