From 7c5e5bc8867785a8fb8ec3d0cfd86a156246cf04 Mon Sep 17 00:00:00 2001 From: felmer <franz-josef.elmer@id.ethz.ch> Date: Thu, 31 Jan 2019 07:31:01 +0100 Subject: [PATCH] SSDM-7204: add registrator and registration timestamp to material items in xml delivered by the data source --- .../1/dss/services/resource-sync/data-source-servlet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbis_standard_technologies/dist/core-plugins/openbis-sync/1/dss/services/resource-sync/data-source-servlet.py b/openbis_standard_technologies/dist/core-plugins/openbis-sync/1/dss/services/resource-sync/data-source-servlet.py index 22e107f97b9..a5f8099701a 100644 --- a/openbis_standard_technologies/dist/core-plugins/openbis-sync/1/dss/services/resource-sync/data-source-servlet.py +++ b/openbis_standard_technologies/dist/core-plugins/openbis-sync/1/dss/services/resource-sync/data-source-servlet.py @@ -245,7 +245,9 @@ def createDataSetMetaData(entity, url_elm): return ET.SubElement(url_elm, "x:xd", attrib = attrs) def createMaterialMetaData(material, url_elm): - attrs = {"kind": "MATERIAL", "code": material.getCode(), "type": material.getType().getCode(), "registration-timestamp": getRegistrationTimestamp(material)} + attrs = {"kind": "MATERIAL", "code": material.getCode(), "type": material.getType().getCode(), + "registration-timestamp": getRegistrationTimestamp(material), + "registrator": material.getRegistrator().getUserId()} return ET.SubElement(url_elm, "x:xd", attrib = attrs) def attachProperties(entity, xd_elm): -- GitLab