개정판 297a0c92
issue #000: add default value at symbol attr
Change-Id: I94a953e5e1b60f8239bb77adae66d216eb455ec9
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py | ||
---|---|---|
254 | 254 |
_attrs[attr] = eval(attr.Expression) if attr.Expression else '' |
255 | 255 |
else: |
256 | 256 |
_attrs[attr] = '' |
257 |
elif attr.AttributeType == 'String': |
|
258 |
_attrs[attr] = attr.Expression if attr.Expression and not _attrs[attr] else _attrs[attr] |
|
257 | 259 |
|
258 | 260 |
for _attr,_value in _attrs.items(): |
259 | 261 |
if _value is None or _value == '': |
내보내기 Unified diff