개정판 4d8db4c8
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