mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 11:43:53 +00:00
Fix #4333. Ensure order of info is correct for valid IDSes.
This commit is contained in:
@@ -81,12 +81,16 @@ class Ids:
|
|||||||
self.info["milestone"] = milestone
|
self.info["milestone"] = milestone
|
||||||
|
|
||||||
def asdict(self):
|
def asdict(self):
|
||||||
|
info = {}
|
||||||
|
for attr in ["title", "copyright", "version", "description", "author", "date", "purpose", "milestone"]:
|
||||||
|
if attr in self.info:
|
||||||
|
info[attr] = self.info[attr]
|
||||||
ids_dict = {
|
ids_dict = {
|
||||||
"@xmlns": "http://standards.buildingsmart.org/IDS",
|
"@xmlns": "http://standards.buildingsmart.org/IDS",
|
||||||
"@xmlns:xs": "http://www.w3.org/2001/XMLSchema",
|
"@xmlns:xs": "http://www.w3.org/2001/XMLSchema",
|
||||||
"@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
|
"@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
|
||||||
"@xsi:schemaLocation": "http://standards.buildingsmart.org/IDS http://standards.buildingsmart.org/IDS/0.9.6/ids.xsd",
|
"@xsi:schemaLocation": "http://standards.buildingsmart.org/IDS http://standards.buildingsmart.org/IDS/0.9.6/ids.xsd",
|
||||||
"info": self.info,
|
"info": info,
|
||||||
"specifications": {"specification": []},
|
"specifications": {"specification": []},
|
||||||
}
|
}
|
||||||
for spec in self.specifications:
|
for spec in self.specifications:
|
||||||
|
|||||||
Reference in New Issue
Block a user