mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Minor fixes after the refactor mess
This commit is contained in:
@@ -3,7 +3,9 @@ def get_primitive_type(attribute_or_data_type):
|
||||
data_type = str(attribute_or_data_type.type_of_attribute())
|
||||
else:
|
||||
data_type = str(attribute_or_data_type)
|
||||
if "<list" in data_type:
|
||||
if "<select" in data_type:
|
||||
return "select"
|
||||
elif "<list" in data_type:
|
||||
return ("list", get_primitive_type(data_type.replace("<list", "")))
|
||||
elif "<entity" in data_type:
|
||||
return "entity"
|
||||
@@ -17,8 +19,6 @@ def get_primitive_type(attribute_or_data_type):
|
||||
return "boolean"
|
||||
elif "<enumeration" in data_type:
|
||||
return "enum"
|
||||
elif "<select" in data_type:
|
||||
return "select"
|
||||
|
||||
|
||||
def get_enum_items(attribute):
|
||||
|
||||
Reference in New Issue
Block a user