Lines Matching refs:doc
153 def writeDocumentSPDX(f, doc, spdx_version=SPDX_VERSION_2_3): argument
154 spdx_normalized_name = _normalize_spdx_name(doc.cfg.name)
167 if len(doc.externalDocuments) > 0:
168 extDocs = list(doc.externalDocuments)
178 if len(doc.relationships) > 0:
179 for rln in doc.relationships:
184 for pkg in doc.pkgs.values():
188 if len(doc.customLicenseIDs) > 0:
189 for lic in sorted(list(doc.customLicenseIDs)):
198 def writeSPDX(spdxPath, doc, spdx_version=SPDX_VERSION_2_3): argument
203 writeDocumentSPDX(f, doc, spdx_version)
213 doc.myDocSHA1 = hashes[0]