Commit 939075a4 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 3b00fbe5
...@@ -98,6 +98,8 @@ class PropertyTypeValidity(Constraint): ...@@ -98,6 +98,8 @@ class PropertyTypeValidity(Constraint):
wrong_type = 0 wrong_type = 0
if property_type == 'tales': if property_type == 'tales':
value = obj.getProperty(property_id, evaluate=0) 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: else:
value = obj.getProperty(property_id) value = obj.getProperty(property_id)
if value is not None: 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