프로젝트

일반

사용자정보

개정판 4d8db4c8

ID4d8db4c80c05407891d846a492b67634dbe06aa9
상위 ad65e27f
하위 9198ffe0

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

issue #563: add line no attr at symbol

Change-Id: I70a99d7e8678adf104ff5452eb4cd7766170fd1e

차이점 보기:

DTI_PID/DTI_PID/Scripts/MSSQL/ID2.sql
1527 1527
    Components_UID      VARCHAR (37) NOT NULL
1528 1528
                                     REFERENCES Components (UID),
1529 1529
    SymbolAttribute_UID VARCHAR (37) NOT NULL,
1530
    Value               TEXT,
1530
    Value               VARCHAR (1024),
1531 1531
    Association_UID     VARCHAR (37) NULL,
1532 1532
    Freeze              VARCHAR (37) NULL,
1533 1533
    UNIQUE (
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py
333 333
                    else:
334 334
                        _attrs[attr] = ''
335 335
                elif attr.AttributeType == 'String':
336
                    _attrs[attr] = attr.Expression if attr.Expression and not _attrs[attr] else _attrs[attr]
336
                    #_attrs[attr] = attr.Expression if attr.Expression and not _attrs[attr] else _attrs[attr]
337
                    _attrs[attr] = eval(attr.Expression) if attr.Expression else _attrs[attr]
337 338

  
338 339
            """calculate attribute value for combined type"""
339 340
            p = re.compile('{[A-Za-z0-9_ ]+}')
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py
264 264
                                                          sys.exc_info()[-1].tb_lineno)
265 265
            App.mainWnd().addMessage.emit(MessageType.Error, str(self.uid) + self.name + message)
266 266

  
267
    def EvaluatedLineNo(self, prop):
268
        from EngineeringLineNoTextItem import QEngineeringLineNoTextItem
269

  
270
        if self.owner and type(self.owner) is QEngineeringLineNoTextItem:
271
            attrs = self.owner.getAttributes()
272
            for attr, value in attrs.items():
273
                if prop == attr.Attribute:
274
                    return value
275

  
276
        return None
277

  
267 278
    def validate(self):
268 279
        """validation check"""
269 280

  

내보내기 Unified diff

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