개정판 ccaadb18
issue #000: fix valve list and reduce typo
Change-Id: I5ae5c928378ad232c72d673282af647750196b60
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
2577 | 2577 |
if matches: |
2578 | 2578 |
matches[0][row[3]] = row[4] |
2579 | 2579 |
else: |
2580 |
data = {'UID':row[0], 'ITEM_NO':row[1], 'SIZE':'', 'LINE_NO':'', 'PNID_NO':row[2]}
|
|
2580 |
data = {'UID':row[0], 'ITEM_NO':row[1], 'PNID_NO':row[2], 'SIZE':'', 'Sub Size':'', 'Main Size':''}
|
|
2581 | 2581 |
data[row[3]] = row[4] |
2582 | 2582 |
result.append(data) |
2583 | 2583 |
|
DTI_PID/DTI_PID/Shapes/EngineeringReducerItem.py | ||
---|---|---|
52 | 52 |
for attr in symbolAttrs: |
53 | 53 |
if attr.AttributeType == 'Size Text Item' or attr.AttributeType == 'Text Item' or attr.AttributeType == 'Valve Oper Code': |
54 | 54 |
at = int(attr.AttrAt) |
55 |
items = [text for text in _texts if QEngineeringAbsractItem.assoc_type(text) == attr.AttributeType] |
|
55 |
items = [text for text in _texts if QEngineeringAbstractItem.assoc_type(text) == attr.AttributeType]
|
|
56 | 56 |
if len(items) > at: |
57 | 57 |
item = items[at] |
58 | 58 |
_attrs[attr] = eval(attr.Expression) if attr.Expression else '' |
내보내기 Unified diff