개정판 ef4aed65
issue #000: disable datalist
Change-Id: I2267d4cd1290e7327c0be72a82ccfa4b18889b94
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py | ||
---|---|---|
223 | 223 |
from EngineeringTextItem import QEngineeringTextItem |
224 | 224 |
from EngineeringValveOperCodeTextItem import QEngineeringValveOperCodeTextItem |
225 | 225 |
from EngineeringLineItem import QEngineeringLineItem |
226 |
from EngineeringVendorItem import QEngineeringVendorItem |
|
226 | 227 |
|
227 | 228 |
""" get attributes of item from database """ |
228 | 229 |
docData = AppDocData.instance() |
229 |
symbolAttrs = docData.getSymbolAttribute(self.type) if type(self) is not QEngineeringLineItem else docData.getSymbolAttribute('Line') |
|
230 |
if type(self) is QEngineeringLineItem: |
|
231 |
symbolAttrs = docData.getSymbolAttribute('Line') |
|
232 |
elif type(self) is QEngineeringVendorItem: |
|
233 |
symbolAttrs = docData.getSymbolAttribute('Package') |
|
234 |
else: |
|
235 |
symbolAttrs = docData.getSymbolAttribute(self.type) |
|
230 | 236 |
targetAttrs = [] |
231 | 237 |
if type(self) is not QEngineeringLineItem: |
232 | 238 |
for attr in symbolAttrs: |
내보내기 Unified diff