[core] implement _applyExpr for List/GroupAttributes

This commit is contained in:
Fabien Castan 2017-10-31 20:55:56 +01:00
parent fbebecd463
commit eec52e45e3

View file

@ -272,6 +272,10 @@ class ListAttribute(Attribute):
uids.append(value.uid(uidIndex))
return hash(uids)
def _applyExpr(self):
for value in self._value:
value._applyExpr()
def getExportValue(self):
return [attr.getExportValue() for attr in self._value]
@ -313,6 +317,10 @@ class GroupAttribute(Attribute):
uids.append(value.uid(uidIndex))
return hash(uids)
def _applyExpr(self):
for value in self._value:
value._applyExpr()
def getExportValue(self):
return {key: attr.getExportValue() for key, attr in self._value.objects.items()}