Generate ID from name for eForms #39
Owner
etl/tedective_etl/ted_to_ocds/transform.py
Lines 496 to 500 in 0f8fb40017
if org_id == form.find(".//cac:ContractingParty/cac:Party/cac:PartyIdentification/cbc:ID", namespaces).text: |
|
name = org.find("./efac:Company/cac:PartyName/cbc:Name", namespaces).text |
|
identifier = ocds.Identifier( |
|
scheme="National-ID", |
|
id=str(org.find("./efac:Company/cac:PartyLegalEntity/cbc:CompanyID", namespaces).text) if org.find("./efac:Company/cac:PartyLegalEntity/cbc:CompanyID", namespaces) is not None else str(""), |
https://git.fsfe.org/TEDective/etl/src/commit/0f8fb40017324818cd6ef88b667d4e807d6dcc6f/tedective_etl/ted_to_ocds/transform.py#L496-L500
Author
Owner
etl/tedective_etl/ted_to_ocds/transform.py
Lines 527 to 535 in 0f8fb40017
supplier = ocds.Organization( |
|
id = str(uuid.uuid4()), |
|
roles={"supplier"} |
|
) |
|
supplier.name = name |
|
supplier.identifier = identifier |
|
supplier.address = address |
|
supplier.contactPoint = contactPoint |
|
supplier.details = details |
https://git.fsfe.org/TEDective/etl/src/commit/0f8fb40017324818cd6ef88b667d4e807d6dcc6f/tedective_etl/ted_to_ocds/transform.py#L527-L535
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?