Commit 5fbca7e0 authored by Nicolas Wavrant's avatar Nicolas Wavrant

DomainTool: list predicate values if more than one match

parent 2df4b71f
......@@ -324,15 +324,9 @@ class DomainTool(BaseTool):
# Look for each property the first predicate with unique criterion
# categories which defines the property
for predicate in predicate_list:
full_prop_dict = explanation_dict[
tuple(predicate.getMembershipCriterionCategoryList())]
for mapped_value_property in predicate.getMappedValuePropertyList():
if mapped_value_property in full_prop_dict:
# we already have one value for this (categories, property)
continue
value = predicate.getProperty(mapped_value_property)
if value is not None:
full_prop_dict[mapped_value_property] = value
mapped_value_property_dict[mapped_value_property].append(value)
if explanation_only:
return dict(explanation_dict)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment