개정판 35716093
issue #000: add linetype uid in xml
Change-Id: I976fbff290c00564e1fb42f73bc9c22a9900559b
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py | ||
---|---|---|
1196 | 1196 |
''' |
1197 | 1197 |
def toXml(self): |
1198 | 1198 |
from xml.etree.ElementTree import Element, SubElement, dump, ElementTree |
1199 |
from LineTypeConditions import LineTypeConditions |
|
1199 | 1200 |
|
1200 | 1201 |
try: |
1201 | 1202 |
node = Element('LINE') |
... | ... | |
1219 | 1220 |
typeNode.text = self.lineType |
1220 | 1221 |
node.append(typeNode) |
1221 | 1222 |
|
1223 |
typeUidNode = Element('TYPEUID') |
|
1224 |
for lineType in LineTypeConditions.items(): |
|
1225 |
if self.lineType == lineType.name: |
|
1226 |
typeUidNode.text = lineType.uid |
|
1227 |
break |
|
1228 |
node.append(typeUidNode) |
|
1229 |
|
|
1230 |
|
|
1222 | 1231 |
areaNode = Element('AREA') |
1223 | 1232 |
areaNode.text = self.area |
1224 | 1233 |
node.append(areaNode) |
내보내기 Unified diff