server/schemaserial.py
branchstable
changeset 4789 c93770e4aaf4
parent 4760 fe0e307b9b70
child 4790 52c81aef0b61
child 4791 b9a1b16a8d26
equal deleted inserted replaced
4788:de92a073faa8 4789:c93770e4aaf4
   223         pb = None
   223         pb = None
   224     # serialize all entity types, assuring CWEType is serialized first
   224     # serialize all entity types, assuring CWEType is serialized first
   225     eschemas.remove(schema.eschema('CWEType'))
   225     eschemas.remove(schema.eschema('CWEType'))
   226     eschemas.insert(0, schema.eschema('CWEType'))
   226     eschemas.insert(0, schema.eschema('CWEType'))
   227     for eschema in eschemas:
   227     for eschema in eschemas:
   228         execschemarql(execute, eschema, eschema2rql(eschema, groupmap))
   228         for rql, kwargs in eschema2rql(eschema, groupmap):
       
   229             execute(rql, kwargs, build_descr=False)
   229         if pb is not None:
   230         if pb is not None:
   230             pb.update()
   231             pb.update()
   231     # serialize constraint types
   232     # serialize constraint types
   232     rql = 'INSERT CWConstraintType X: X name %(ct)s'
   233     rql = 'INSERT CWConstraintType X: X name %(ct)s'
   233     for cstrtype in CONSTRAINTS:
   234     for cstrtype in CONSTRAINTS: