Skip to content
Snippets Groups Projects
Commit aea1beaa authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

FIX: Workaround for bug 109 (problems with xml representations of list values)

parent 5075530a
No related branches found
No related tags found
3 merge requests!57RELEASE 0.7.3,!50F merge entities,!45F copy entity
......@@ -742,9 +742,16 @@ def merge_entities(entity_a: Entity, entity_b: Entity):
else:
raise RuntimeError("Merge conflict.")
else:
entity_a.add_property(
entity_b.get_property(key),
importance=entity_b.get_importance(key))
# TODO: This is a temporary FIX for
# https://gitlab.indiscale.com/caosdb/src/caosdb-pylib/-/issues/105
entity_a.add_property(id=entity_b.get_property(key).id,
name=entity_b.get_property(key).name,
datatype=entity_b.get_property(key).datatype,
value=entity_b.get_property(key).value,
importance=entity_b.get_importance(key))
# entity_a.add_property(
# entity_b.get_property(key),
# importance=entity_b.get_importance(key))
for special_attribute in ("name", "description"):
sa_a = getattr(entity_a, special_attribute)
......
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