개정판 cea694ef
issue #366: fix spec break
Change-Id: I0b10edded9411d33c13592cb97dcf8c821aac0ed
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
666 | 666 |
for key in attrs.keys(): |
667 | 667 |
if key.Attribute == 'UpStream': |
668 | 668 |
attrs[key] = spec[0] |
669 |
spec_break.add_assoc_item(spec[0], key.AttrAt, force=True) |
|
669 | 670 |
elif key.Attribute == 'DownStream': |
670 | 671 |
attrs[key] = spec[1] |
672 |
spec_break.add_assoc_item(spec[1], key.AttrAt, force=True) |
|
671 | 673 |
|
672 | 674 |
for attr, value, value2 in spec[2:]: |
673 | 675 |
for full in specBreakAttrsFull: |
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
1380 | 1380 |
associations = app_doc_data.get_component_associations(uid) |
1381 | 1381 |
if associations: |
1382 | 1382 |
for assoc in associations: |
1383 |
_type = assoc['Type']
|
|
1384 |
if not _type in item._associations:
|
|
1385 |
item._associations[_type] = []
|
|
1386 |
item._associations[_type].append(
|
|
1383 |
_attrType = assoc['Type']
|
|
1384 |
if not _attrType in item._associations:
|
|
1385 |
item._associations[_attrType] = []
|
|
1386 |
item._associations[_attrType].append(
|
|
1387 | 1387 |
uuid.UUID(assoc['Association']) if assoc['Association'] != 'None' else None) |
1388 | 1388 |
# up to here |
1389 | 1389 |
|
... | ... | |
1529 | 1529 |
attributeValue = node.find('ASSOCIATIONS') |
1530 | 1530 |
if attributeValue is not None: |
1531 | 1531 |
for assoc in attributeValue.iter('ASSOCIATION'): |
1532 |
_type = assoc.attrib['TYPE']
|
|
1533 |
if not _type in item._associations:
|
|
1534 |
item._associations[_type] = []
|
|
1535 |
item._associations[_type].append(uuid.UUID(assoc.text) if assoc.text != 'None' else None)
|
|
1532 |
_attrType = assoc.attrib['TYPE']
|
|
1533 |
if not _attrType in item._associations:
|
|
1534 |
item._associations[_attrType] = []
|
|
1535 |
item._associations[_attrType].append(uuid.UUID(assoc.text) if assoc.text != 'None' else None)
|
|
1536 | 1536 |
# up to here |
1537 | 1537 |
|
1538 | 1538 |
attributes = node.find('SYMBOLATTRIBUTES') |
내보내기 Unified diff