[core] Attribute: getExportValue give the expression on output attributes

On output attributes, we export the desc value which contains the
expression and not the locally evaluated value.
This commit is contained in:
Fabien Castan 2017-11-06 20:46:26 +01:00
parent ee7c0d0fd5
commit 3a6473b78f

View file

@ -219,7 +219,11 @@ class Attribute(BaseObject):
self._value = "" self._value = ""
def getExportValue(self): def getExportValue(self):
return '{' + self.getLinkParam().fullName() + '}' if self.isLink else self._value if self.isLink:
return '{' + self.getLinkParam().fullName() + '}'
if self.isOutput:
return self.desc.value
return self._value
name = Property(str, getName, constant=True) name = Property(str, getName, constant=True)
label = Property(str, getLabel, constant=True) label = Property(str, getLabel, constant=True)