Commit 163a071f authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

[dataimport] fix CubicWeb 3.25 compatibility

cnx.session is gone with CubicWeb 3.25, use vreg to get the schema instead.
parent 3f2be8f07627
......@@ -103,7 +103,7 @@ def store_skos_extentities(cnx, store, entities, import_log,
entities = imap(record_scheme, entities)
etypes_order_hint = ('ConceptScheme', 'Concept', 'Label')
existing_relations = SKOSRelationMapping(cnx, source)
importer = SKOSExtEntitiesImporter(schema=cnx.session.repo.schema, store=store,
importer = SKOSExtEntitiesImporter(schema=cnx.vreg.schema, store=store,
extid2eid=extid2eid, existing_relations=existing_relations,
restore_relations=restore_relations,
etypes_order_hint=etypes_order_hint, import_log=import_log,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment