개정판 6995165d
issue #000: sym attr text item type include valve operation code
Change-Id: I681c4a1ea5baa7df83648b5157de77cb31d037c2
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py | ||
---|---|---|
223 | 223 |
if attr.Freeze: continue ### do not evalulate value if attribute is frozen |
224 | 224 |
if attr.AttributeType == 'Text Item' or attr.AttributeType == 'Valve Oper Code': |
225 | 225 |
at = int(attr.AttrAt) |
226 |
items = [text for text in _texts if QEngineeringAbstractItem.assoc_type(text) == attr.AttributeType] |
|
226 |
|
|
227 |
# Text Item can contain Valve Oper Code |
|
228 |
if attr.AttributeType == 'Text Item': |
|
229 |
items = _texts |
|
230 |
else: |
|
231 |
items = [text for text in _texts if QEngineeringAbstractItem.assoc_type(text) == attr.AttributeType] |
|
232 |
|
|
227 | 233 |
if not attr.AssocItem and len(items) > at: |
228 | 234 |
attr.AssocItem = items[at] |
229 | 235 |
item = attr.AssocItem |
내보내기 Unified diff