From fa585e60eead8cc9c9e4003ad97d3f5c604a25ad Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 8 Apr 2016 23:23:45 +0200 Subject: [PATCH] Update EXPRESS code generator to work on ancient IFC schemas --- src/ifcexpressparser/implementation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcexpressparser/implementation.py b/src/ifcexpressparser/implementation.py index cd320274c7..2d19dca7ce 100644 --- a/src/ifcexpressparser/implementation.py +++ b/src/ifcexpressparser/implementation.py @@ -157,7 +157,7 @@ class Implementation(codegen.Base): superclass = superclass ) - selectable_simple_types = sorted(set(sum([b.values for a,b in mapping.schema.selects.items()], [])) & set(mapping.schema.types.keys())) + selectable_simple_types = sorted(set(sum([b.values for a,b in mapping.schema.selects.items()], [])) & set(map(str, mapping.schema.types.keys()))) schema_entity_statements += [templates.schema_entity_stmt%locals() for name, type in mapping.schema.simpletypes.items()] schema_entity_statements += [templates.schema_entity_stmt%locals() for name, type in mapping.schema.entities.items()]