--- a/server/schemaserial.py Thu Mar 04 17:50:17 2010 +0100
+++ b/server/schemaserial.py Thu Mar 04 17:51:27 2010 +0100
@@ -223,8 +223,9 @@
pb = ProgressBar(pb_size, title=_title)
else:
pb = None
- # serialize all entity types, assuring CWEType is serialized first
- groupmap = group_mapping(cursor)
+ groupmap = group_mapping(cursor, interactive=False)
+ # serialize all entity types, assuring CWEType is serialized first for proper
+ # is / is_instance_of insertion
eschemas.remove(schema.eschema('CWEType'))
eschemas.insert(0, schema.eschema('CWEType'))
for eschema in eschemas:
@@ -245,7 +246,7 @@
if pb is not None:
pb.update()
continue
- for rql, kwargs in rschema2rql(rschema, groupmap):
+ for rql, kwargs in rschema2rql(rschema, groupmap=groupmap):
execute(rql, kwargs, build_descr=False)
if pb is not None:
pb.update()