cubicweb/dataimport/importer.py
changeset 12167 1ca864397424
parent 11943 760deab5413e
child 12173 d13fc09301bd
equal deleted inserted replaced
12164:8d1a7021c817 12167:1ca864397424
   242         for rtype in entity_dict:
   242         for rtype in entity_dict:
   243             rschema = schema.rschema(rtype)
   243             rschema = schema.rschema(rtype)
   244             if not rschema.final:
   244             if not rschema.final:
   245                 # .prepare() should drop other cases from the entity dict
   245                 # .prepare() should drop other cases from the entity dict
   246                 assert rschema.inlined
   246                 assert rschema.inlined
   247                 if not entity_dict[rtype] in extid2eid:
   247                 if entity_dict[rtype] not in extid2eid:
   248                     return False
   248                     return False
   249         # entity is ready, replace all relation's extid by eids
   249         # entity is ready, replace all relation's extid by eids
   250         for rtype in entity_dict:
   250         for rtype in entity_dict:
   251             rschema = schema.rschema(rtype)
   251             rschema = schema.rschema(rtype)
   252             if rschema.inlined:
   252             if rschema.inlined: