프로젝트

일반

사용자정보

개정판 9ba505fc

ID9ba505fc8a5c2be78edee548f9f50f47b4602979
상위 c3ef6a7e
하위 f97575ce

함의성이(가) 4년 이상 전에 추가함

issue #563: replace table attr reference test, by ordering

Change-Id: I38787c0949abae09bc83594f8d285f933f355c0f

차이점 보기:

DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py
414 414

  
415 415
            _texts = self.texts()
416 416
            _symbols = self.symbols(symbol_attr_number + 1)
417
            for attr in [_attr for _attr in targetAttrs if _attr.AttributeType != 'Combined' and _attr.AttributeType != 'Reference']:
417

  
418
            # copy old values
419
            for attr in targetAttrs:
418 420
                matches = [_attr for _attr, _ in self.attrs.items() if _attr.UID == attr.UID]
419 421
                if matches:
420 422
                    if matches[0].AttributeType == 'Spec' and not self.attrs[matches[0]]:
......
425 427
                else:
426 428
                    if attr.AttributeType != 'Spec':
427 429
                        _attrs[attr] = ''
430
            self.attrs = _attrs
428 431

  
432
            for attr in [_attr for _attr in self.attrs if _attr.AttributeType != 'Combined' and _attr.AttributeType != 'Reference']:
429 433
                # if attr.Freeze: continue    # do not evaluate value if attribute is frozen
430 434
                if attr.AttributeType == 'Text Item' or attr.AttributeType == 'Valve Oper Code':
431 435
                    at = int(attr.AttrAt)
......
511 515
            for _attr, _value in _attrs.items():
512 516
                if _value is None or _value == '':
513 517
                    _attr.AssocItem = None
514

  
515
            self.attrs = _attrs
516 518
        except Exception as ex:
517 519
            from App import App
518 520
            from AppDocData import MessageType

내보내기 Unified diff

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