[PATCH 1 of 2 seda] Follow compound cube api changes: move to a cube as package layout

Sylvain Thenault sylvain.thenault at logilab.fr
Fri Mar 3 15:58:16 CET 2017

# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1488552092 -3600
#      Fri Mar 03 15:41:32 2017 +0100
# Node ID bdf91960d90d961415b7fde5308c21b51f287b3e
# Parent  08ff736126f14654fc1d1282ac998964dcb7ddcd
Follow compound cube api changes: move to a cube as package layout

diff --git a/cubicweb_seda/__init__.py b/cubicweb_seda/__init__.py
--- a/cubicweb_seda/__init__.py
+++ b/cubicweb_seda/__init__.py
@@ -18,11 +18,11 @@
 Data Exchange Standard for Archival
 from cubicweb import neg_role
-from cubes.compound import structure_def, skip_rtypes_set
+from cubicweb_compound import structure_def, skip_rtypes_set
 def seda_profile_container_def(schema):
     """Define container for SEDAProfile"""
     return structure_def(schema, 'SEDAArchiveTransfer').items()
diff --git a/cubicweb_seda/entities/__init__.py b/cubicweb_seda/entities/__init__.py
--- a/cubicweb_seda/entities/__init__.py
+++ b/cubicweb_seda/entities/__init__.py
@@ -17,11 +17,11 @@
 import json
 from logilab.common.registry import objectify_predicate
-from cubes.compound.entities import IContainer, IContained, IClonableAdapter
+from cubicweb_compound.entities import IContainer, IContained, IClonableAdapter
 from .. import seda_profile_container_def
 from ..xsd import XSDMMapping
 from ..xsd2yams import RULE_TYPES
diff --git a/cubicweb_seda/views/archiveunit.py b/cubicweb_seda/views/archiveunit.py
--- a/cubicweb_seda/views/archiveunit.py
+++ b/cubicweb_seda/views/archiveunit.py
@@ -24,11 +24,11 @@ from logilab.common.decorators import mo
 from cubicweb import tags, _
 from cubicweb.predicates import is_instance
 from cubicweb.view import EntityView
 from cubicweb.web.views import autoform, baseviews, tabs, uicfg
-from cubes.compound import views as compound
+from cubicweb_compound import views as compound
 from cubes.relationwidget import views as rwdg
 from ..xsd import un_camel_case
 from ..entities import (is_full_seda2_profile, full_seda2_profile,
                         simplified_profile, parent_and_container)
diff --git a/cubicweb_seda/views/clone.py b/cubicweb_seda/views/clone.py
--- a/cubicweb_seda/views/clone.py
+++ b/cubicweb_seda/views/clone.py
@@ -18,11 +18,11 @@
 from cubicweb import uilib, _
 from cubicweb.predicates import match_form_params, has_permission, one_line_rset, is_instance
 from cubicweb.web import Redirect, action, controller
 from cubicweb.web.views import actions, uicfg
-from cubes.compound.entities import copy_entity
+from cubicweb_compound.entities import copy_entity
 from cubes.relationwidget import views as rwdg
 from .widgets import configure_relation_widget

More information about the saem-devel mailing list