Skip to content
Snippets Groups Projects
Commit 671b81a4 authored by Adam Laskowski's avatar Adam Laskowski
Browse files

SSDM-13689: Fixed issue with updating properties for linked datasets

parent 1020354c
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -71,9 +71,10 @@ class OpenBisObject: ...@@ -71,9 +71,10 @@ class OpenBisObject:
# put the properties in the self.p namespace (without checking them) # put the properties in the self.p namespace (without checking them)
if "properties" in data: if "properties" in data:
for key, value in data["properties"].items(): for key, value in data["properties"].items():
data_type = self.p._property_names[key.lower()]['dataType'] if self.p.type:
if data_type in ("ARRAY_INTEGER", "ARRAY_REAL", "ARRAY_STRING", "ARRAY_TIMESTAMP"): data_type = self.p._property_names[key.lower()]['dataType']
value = self.formatter.to_array(data_type, value) if data_type in ("ARRAY_INTEGER", "ARRAY_REAL", "ARRAY_STRING", "ARRAY_TIMESTAMP"):
value = self.formatter.to_array(data_type, value)
self.p.__dict__[key.lower()] = value self.p.__dict__[key.lower()] = value
# object is already saved to openBIS, so it is not new anymore # object is already saved to openBIS, so it is not new anymore
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment