개정판 9124f6d0
issue #563: fix association order break, need check using db instead xml
Change-Id: I7c8514730dcc07e9280b54449ca3398ddfe46cef
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py | ||
---|---|---|
165 | 165 |
res = [] |
166 | 166 |
for key in self._associations.keys(): |
167 | 167 |
index = 0 |
168 |
for assoc in list(set(self._associations[key])):
|
|
168 |
for assoc in list(self._associations[key]):
|
|
169 | 169 |
# find owner with uid if self.scene() is valid |
170 | 170 |
if self.scene() and assoc and type(assoc) is uuid.UUID: |
171 | 171 |
matches = [x for x in self.scene().items() if hasattr(x, 'uid') and str(x.uid) == str(assoc)] |
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
1504 | 1504 |
appDocData = AppDocData.instance() |
1505 | 1505 |
|
1506 | 1506 |
uidNode = node.find('UID') |
1507 |
if uidNode.text == 'bf8c0fd7-f4a2-4a50-befc-792a82659a23': |
|
1508 |
print('a') |
|
1507 | 1509 |
uid = uidNode.text if uidNode is not None else uuid.uuid4() # generate UUID |
1508 | 1510 |
|
1509 | 1511 |
pt = [float(x) for x in node.find('LOCATION').text.split(',')] |
내보내기 Unified diff