Updated constraints to remove cyclic dependencies
authorThierry Florac <thierry.florac@onf.fr>
Mon, 11 Jun 2018 08:44:02 +0200
changeset 602 5f78ad6fe809
parent 601 5c16e7815b69
child 603 eadaa6149824
Updated constraints to remove cyclic dependencies
src/pyams_content/shared/common/interfaces/__init__.py
--- a/src/pyams_content/shared/common/interfaces/__init__.py	Sat Jun 09 00:44:12 2018 +0200
+++ b/src/pyams_content/shared/common/interfaces/__init__.py	Mon Jun 11 08:44:02 2018 +0200
@@ -18,7 +18,6 @@
 # import interfaces
 from pyams_content.interfaces import IBaseContent, MANAGE_CONTENT_PERMISSION, OWNER_ROLE, MANAGER_ROLE, \
     READER_ROLE, GUEST_ROLE, WEBMASTER_ROLE, PILOT_ROLE, CONTRIBUTOR_ROLE
-from pyams_content.root.interfaces import ISiteRoot
 from pyams_workflow.interfaces import IWorkflowManagedContent
 from zope.container.interfaces import IContainer
 
@@ -69,13 +68,13 @@
 class ISharedSite(IBaseContent, IDeletableElement):
     """Shared site interface"""
 
-    containers(ISiteRoot)
+    containers('pyams_content.root.interfaces.ISiteRoot')
 
 
 class ISharedToolContainer(IBaseContent, IContainer):
     """Shared tools container"""
 
-    containers(ISiteRoot)
+    containers('pyams_content.root.interfaces.ISiteRoot')
     contains('.ISharedTool')