개정판 a8de03fa
issue #000: fix lineitem owner binding
Change-Id: Ibcc624ae600c6a017d392513ecb9c42080bcead5
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
95 | 95 |
''' |
96 | 96 |
@property |
97 | 97 |
def owner(self): |
98 |
import uuid |
|
99 |
|
|
100 |
if self._owner and type(self._owner) is uuid.UUID: |
|
101 |
matches = [x for x in self.scene().items() if hasattr(x, 'uid') and str(x.uid) == str(self._owner)] |
|
102 |
if matches: self._owner = matches[0] |
|
103 |
|
|
98 | 104 |
return self._owner |
99 | 105 |
|
100 | 106 |
''' |
내보내기 Unified diff