개정판 11b219bb
spec fix
Change-Id: Ib6bd9214709aab0142c48efdfcf7cc3ea20957b9
DTI_PID/DTI_PID/Shapes/EngineeringSpecBreakItem.py | ||
---|---|---|
68 | 68 |
# display Up / Down indicator |
69 | 69 |
add_doc_data = AppDocData.instance() |
70 | 70 |
attrs = self.getAttributes() |
71 |
up = [attr.AssocItem for attr in attrs if attr.Attribute == 'UpStream'] |
|
72 |
down = [attr.AssocItem for attr in attrs if attr.Attribute == 'DownStream'] |
|
71 |
up = [attr.AssocItem for attr in attrs if attr.Attribute == 'UpStream' and attr.AssocItem]
|
|
72 |
down = [attr.AssocItem for attr in attrs if attr.Attribute == 'DownStream' and attr.AssocItem]
|
|
73 | 73 |
if not add_doc_data.SpecBreakUpDownIndicator or len(add_doc_data.SpecBreakUpDownIndicator) < 2: |
74 | 74 |
if up and down: |
75 | 75 |
for item in [up[0], down[0]]: |
내보내기 Unified diff