프로젝트

일반

사용자정보

개정판 e9370dfd

IDe9370dfd915fd3502df3d4475f212d5e6b05477d
상위 eceb0ba0
하위 8531ef2f, d9ea4412

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

fix property

Change-Id: I5327671ae969806b9fa44fac481262369bd2789a

차이점 보기:

DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py
1552 1552
            for key in item._properties.keys():
1553 1553
                for compo in component.keys():
1554 1554
                    if key.Attribute == compo:
1555
                        item._properties[key] = key.parse_value(component[key.Attribute]) if component[
1556
                            key.Attribute] else ''
1555
                        item._properties[key] = key.parse_value(component[key.Attribute])# if component[key.Attribute] else ''
1557 1556

  
1558 1557
            ## assign area
1559 1558
            if component['Area']:
......
1678 1677
                matches = [prop for prop in item._properties.keys() if
1679 1678
                            prop.Attribute == prop_node.attrib['Attribute']]
1680 1679
                if matches:
1681
                    item._properties[matches[0]] = matches[0].parse_value(prop_node.text) if prop_node.text else ''
1680
                    item._properties[matches[0]] = matches[0].parse_value(prop_node.text)# if prop_node.text else ''
1682 1681

  
1683 1682
        except Exception as ex:
1684 1683
            from App import App
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py
1601 1601
                for key in item._properties.keys():
1602 1602
                    for compo in component.keys():
1603 1603
                        if key.Attribute == compo:
1604
                            item._properties[key] = key.parse_value(component[key.Attribute]) if component[
1605
                                key.Attribute] else ''
1604
                            item._properties[key] = key.parse_value(component[key.Attribute])# if component[key.Attribute] else ''
1606 1605

  
1607 1606
                ## assign area
1608 1607
                areaNode = component['Area']
......
1763 1762
                    matches = [prop for prop in item._properties.keys() if
1764 1763
                               prop.Attribute == prop_node.attrib['Attribute']]
1765 1764
                    if matches:
1766
                        item._properties[matches[0]] = matches[0].parse_value(prop_node.text) if prop_node.text else ''
1765
                        item._properties[matches[0]] = matches[0].parse_value(prop_node.text)# if prop_node.text else ''
1767 1766

  
1768 1767
                # assign area
1769 1768
                areaNode = node.find('AREA')

내보내기 Unified diff

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