mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 03:10:56 +00:00
Fix #3202.
This commit is contained in:
@@ -58,6 +58,8 @@ class Facet:
|
|||||||
return results
|
return results
|
||||||
|
|
||||||
def parse(self, xml):
|
def parse(self, xml):
|
||||||
|
setattr(self, "minOccurs", 1)
|
||||||
|
setattr(self, "maxOccurs", 1)
|
||||||
for name, value in xml.items():
|
for name, value in xml.items():
|
||||||
name = name.replace("@", "")
|
name = name.replace("@", "")
|
||||||
if isinstance(value, dict) and "simpleValue" in value.keys():
|
if isinstance(value, dict) and "simpleValue" in value.keys():
|
||||||
@@ -893,7 +895,7 @@ class ClassificationResult(Result):
|
|||||||
return "The entity has no classification"
|
return "The entity has no classification"
|
||||||
elif self.reason["type"] == "VALUE":
|
elif self.reason["type"] == "VALUE":
|
||||||
return f"The references \"{str(self.reason['actual'])}\" do not match the requirements"
|
return f"The references \"{str(self.reason['actual'])}\" do not match the requirements"
|
||||||
elif self.reason["type"] == "system":
|
elif self.reason["type"] == "SYSTEM":
|
||||||
return f"The systems \"{str(self.reason['actual'])}\" do not match the requirements"
|
return f"The systems \"{str(self.reason['actual'])}\" do not match the requirements"
|
||||||
elif self.reason["type"] == "PROHIBITED":
|
elif self.reason["type"] == "PROHIBITED":
|
||||||
return f"The classification should not have met the requirement"
|
return f"The classification should not have met the requirement"
|
||||||
|
|||||||
Reference in New Issue
Block a user