Commit 5dd65b04 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

Use entity_type method instead of deprecated entity_metas

The latter is deprecated since cubicweb 3.24.

Related to #17133718.
parent 386b280bc7f0
......@@ -38,7 +38,7 @@ def ext_dump_relations(cnx, extid2eid, extentity):
argument, to attempt to work around store's limitation on inlined relation.
eid = extid2eid[extentity.extid]
etype = cnx.entity_metas(eid)['type']
etype = cnx.entity_type(eid)
relations = []
rschema = cnx.vreg.schema.rschema
for subj, rtype, obj in dump_relations(cnx, eid, etype):
......@@ -120,7 +120,7 @@ def store_skos_extentities(cnx, store, entities, import_log,
except KeyError:
if extentity.etype == 'Concept' and cnx.entity_metas(eid)['type'] == 'ExternalUri':
if extentity.etype == 'Concept' and cnx.entity_type(eid) == 'ExternalUri':
# We have replaced the external uri by the new concept. As entities.extid column is
# unique, we've to drop the external uri before inserting the concept, so we:
# 1. record every relations from/to the external uri,
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