[core] Add iteration accessor on ListAttribute

This commit is contained in:
Aurore LAFAURIE 2024-05-14 11:52:22 +02:00
parent c50d3cc9e7
commit 3f0e3e00c7

View file

@ -445,6 +445,9 @@ class ListAttribute(Attribute):
def __len__(self):
return len(self._value)
def __iter__(self):
return iter(self._value)
def getBaseType(self):
return self.attributeDesc.elementDesc.__class__.__name__