개정판 f97575ce
issue #563: fix attr order
Change-Id: Id7b0dce6f9db55926c1fac909e93ffeef2afa154
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py | ||
---|---|---|
429 | 429 |
_attrs[attr] = '' |
430 | 430 |
self.attrs = _attrs |
431 | 431 |
|
432 |
for attr in [_attr for _attr in self.attrs if _attr.AttributeType != 'Combined' and _attr.AttributeType != 'Reference']: |
|
432 |
for attr in [_attr for _attr in sorted(self.attrs.items(), key=lambda param:int(param[0].Index)) \ |
|
433 |
if _attr.AttributeType != 'Combined' and _attr.AttributeType != 'Reference']: |
|
433 | 434 |
# if attr.Freeze: continue # do not evaluate value if attribute is frozen |
434 | 435 |
if attr.AttributeType == 'Text Item' or attr.AttributeType == 'Valve Oper Code': |
435 | 436 |
at = int(attr.AttrAt) |
내보내기 Unified diff