(doc, node, scopes)
| 53 | |
| 54 | |
| 55 | def 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 | |
| 62 | def addTypes(doc, node, types): |
no test coverage detected