Commit a3582961 authored by Nicolas Wavrant's avatar Nicolas Wavrant

DomainTool: list predicate values if more than one match

parent 4a89f9c2
......@@ -327,12 +327,9 @@ class DomainTool(BaseTool):
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
full_prop_dict.setdefault(mapped_value_property, []).append(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