MCPcopy Create free account
hub / github.com/andreikop/python-ws-discovery / addScopes

Function addScopes

wsdiscovery/util.py:55–59  ·  view source on GitHub ↗
(doc, node, scopes)

Source from the content-addressed store, hash-verified

53
54
55def addScopes(doc, node, scopes):
56 if scopes is not None and len(scopes) > 0:
57 addElementWithText(doc, node, "d:Scopes", NS_DISCOVERY, " ".join([x.getQuotedValue() for x in scopes]))
58 if scopes[0].getMatchBy() is not None and len(scopes[0].getMatchBy()) > 0:
59 node.getElementsByTagNameNS(NS_DISCOVERY, "Scopes")[0].setAttribute("MatchBy", scopes[0].getMatchBy())
60
61
62def addTypes(doc, node, types):

Callers 4

createProbeMatchMessageFunction · 0.85
createHelloMessageFunction · 0.85
createProbeMessageFunction · 0.85

Calls 4

addElementWithTextFunction · 0.85
joinMethod · 0.80
getQuotedValueMethod · 0.80
getMatchByMethod · 0.80

Tested by

no test coverage detected