프로젝트

일반

사용자정보

개정판 57080dff

ID57080dff4ef60dd47673bc48c0969945a40c433d
상위 38657e1b
하위 63740307

함의성이(가) 약 5년 전에 추가함

issue #622: remove code for old data and spec break getattribute need check

Change-Id: Ib80a7830a90dcc722badf2f4dd80bc7e548b2d14

차이점 보기:

DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py
1574 1574

  
1575 1575
                attributes = node.find('SYMBOLATTRIBUTES')
1576 1576
                if attributes is not None:
1577
                    '''
1577 1578
                    ## for old spec break item that has not uid currectly, may not necessary new data
1578 1579
                    if _type == 'Segment Breaks':
1579 1580
                        specBreakAttrs = appDocData.getSymbolAttribute('Segment Breaks')
1580 1581
                    ## up to here 1
1582
                    '''
1581 1583
                    for attr in attributes.iter('ATTRIBUTE'):
1582 1584
                        _attr = SymbolAttr.fromXml(attr)
1583 1585
                        if type(item) is not QEngineeringSpecBreakItem and type(item) is not QEngineeringEndBreakItem:
1584 1586
                            item.attrs[_attr] = attr.text
1585 1587
                        else:
1588
                            '''
1586 1589
                            ## for old spec break item that has not uid currectly, may not necessary new data
1587 1590
                            matchAttr = [cAttr for cAttr in specBreakAttrs if _attr.Attribute == cAttr.Attribute]
1588 1591
                            matchAttr = matchAttr[0] if matchAttr else None
......
1594 1597
                                _attr.Expression = matchAttr.Expression
1595 1598
                                _attr.Length = matchAttr.Length
1596 1599
                            # up to here 2
1600
                            '''
1597 1601
                            if _attr.AttributeType == 'Spec':
1598 1602
                                item.attrs[_attr] = [attr.text.split(',')[0], attr.text.split(',')[1]]
1599 1603
                            else:
1604
                                '''
1600 1605
                                # for old spec break item that has not uid currectly, may not necessary new data
1601 1606
                                _attr.AssocItem = uuid.UUID(attr.text) if attr.text and attr.text != 'None' else None
1602 1607
                                # up to here 3
1608
                                '''
1603 1609
                                item.attrs[_attr] = attr.text
1604 1610
                            '''
1605 1611
                            elif _attr.Attribute == 'UpStream':

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)