Commit 9444c72f authored by Frank Bessou's avatar Frank Bessou 💭
Browse files

Import cubicweb_skos instead of cubes.skos

When both cubes.skos and cubicweb_skos are used to import the same
module, appobjects are registered using the wrong objid.

This is particularly problematic in register_and_replace function of
registries which relies on the objid of appobjects to find which object
to replace.
parent 0b663b4c509f
......@@ -30,7 +30,7 @@ from cubicweb.dataimport.importer import (
from cubes.skos import lcsv, sobjects as skos
from cubicweb_skos import lcsv, sobjects as skos
# If you want to add a vocabulary here, add it to the end of the list if you
# want to create it in migration script by simply calling import_seda_schemes
......@@ -21,7 +21,7 @@ from yams.buildobjs import String
from cubicweb import _
from cubicweb.schema import ERQLExpression, RRQLExpression, RQLConstraint
from cubes.skos import schema as skos
from cubicweb_skos import schema as skos
from .xsd2yams import MULTIPLE_CHILDREN
......@@ -26,7 +26,7 @@ from cubicweb.predicates import match_form_params, is_instance
from cubicweb.web.views import uicfg, tabs, ibreadcrumbs
from cubes.relationwidget import views as rwdg
from cubes.skos.views import widgets as skos
from cubicweb_skos.views import widgets as skos
from ..xsd2yams import SCHEME_FROM_CONTAINER
from ..entities import parent_and_container, simplified_profile, full_seda2_profile
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