All xml attributes are now added to the etree class in alphabetical order to ensure it writes the same on different versions

This commit is contained in:
Veronica K. B. Olsen
2019-08-11 20:21:06 +02:00
parent b4a89ede9f
commit 6a19807310
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -55,8 +55,8 @@ class NWItem():
def packXML(self, xParent):
xPack = etree.SubElement(xParent,"item",attrib={
"handle" : str(self.itemHandle),
"parent" : str(self.parHandle),
"order" : str(self.itemOrder),
"parent" : str(self.parHandle),
})
xSub = self._subPack(xPack,"name", text=str(self.itemName))
xSub = self._subPack(xPack,"type", text=str(self.itemType.name))