hooks/syncschema.py
branchstable
changeset 6097 27e48fb7f113
parent 6076 aa7402e998a1
child 6142 8bc6eac1fac1
child 6163 407f54345687
equal deleted inserted replaced
6095:09a404123f0f 6097:27e48fb7f113
   117     groupmap = group_mapping(session)
   117     groupmap = group_mapping(session)
   118     object = rschema.schema.eschema(rdefdef.object)
   118     object = rschema.schema.eschema(rdefdef.object)
   119     for specialization in eschema.specialized_by(False):
   119     for specialization in eschema.specialized_by(False):
   120         if (specialization, rdefdef.object) in rschema.rdefs:
   120         if (specialization, rdefdef.object) in rschema.rdefs:
   121             continue
   121             continue
   122         print 'adding infered', specialization, rschema.type, object
       
   123         sperdef = RelationDefinitionSchema(specialization, rschema,
   122         sperdef = RelationDefinitionSchema(specialization, rschema,
   124                                            object, props)
   123                                            object, props)
   125         ss.execschemarql(session.execute, sperdef,
   124         ss.execschemarql(session.execute, sperdef,
   126                          ss.rdef2rql(sperdef, cstrtypemap, groupmap))
   125                          ss.rdef2rql(sperdef, cstrtypemap, groupmap))
   127 
   126