Commit 4ed7d4dc authored by Gabriel Monnerat's avatar Gabriel Monnerat Committed by Jérome Perrin

PropertyTypeValidity: For list and tuple we should use getPropertyList instead of getProperty

parent 1c2b6315
......@@ -100,6 +100,8 @@ class PropertyTypeValidity(Constraint):
wrong_type = 0
if property_type == 'tales':
value = obj.getProperty(property_id, evaluate=0)
elif any(t in (list, tuple) for t in self._type_dict[property_type]):
value = obj.getPropertyList(property_id)
else:
value = obj.getProperty(property_id)
if value is not None:
......
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