프로젝트

일반

사용자정보

개정판 9100a182

ID9100a182f75932c56c3e7ed17e674864b681f31b
상위 528fc146
하위 4f1a6030, 680b280c

humkyung 이(가) 6년 이상 전에 추가함

issue #587:
- 객체의 속성을 가져오는 로직 변경

차이점 보기:

DTI_PID/DTI_PID/AppDocData.py
1355 1355
                print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
1356 1356
        finally:
1357 1357
            conn.close()
1358
    
1359

  
1360

  
1361 1358

  
1362 1359
    '''
1363 1360
        @brief      convert inch to metric
......
1548 1545
        @history    humkyung 2018.10.13 load expression
1549 1546
    '''
1550 1547
    def getSymbolAttribute(self, _type):
1548
        from SymbolAttr import SymbolAttr
1549

  
1551 1550
        result = []
1552 1551

  
1553 1552
        try:
......
1562 1561
            cursor.execute(sql, param)
1563 1562
            rows = cursor.fetchall()
1564 1563
            for row in rows:
1565
                result.append((row[0], row[1], row[2], row[3], row[4], row[5], row[6]))
1564
                attr = SymbolAttr()
1565
                attr.UID = row[0]
1566
                attr.Attribute = row[1]
1567
                attr.DisplayAttribute = row[2]
1568
                attr.AttributeType = row[3]
1569
                attr.AttrAt = row[4]
1570
                attr.Expression = row[5]
1571
                result.append(attr)
1566 1572
            # Catch the exception
1567 1573
        except Exception as ex:
1568 1574
            from App import App 

내보내기 Unified diff