Updated imports to remove cyclic dependencies
authorThierry Florac <thierry.florac@onf.fr>
Mon, 11 Jun 2018 08:51:03 +0200
changeset 604 581b1be90ee7
parent 603 eadaa6149824
child 605 d3d50fcbc62c
Updated imports to remove cyclic dependencies
src/pyams_content/features/review/__init__.py
--- a/src/pyams_content/features/review/__init__.py	Mon Jun 11 08:44:19 2018 +0200
+++ b/src/pyams_content/features/review/__init__.py	Mon Jun 11 08:51:03 2018 +0200
@@ -22,7 +22,6 @@
 from pyams_content.interfaces import READER_ROLE
 from pyams_content.features.review.interfaces import IReviewManager, IReviewComment, IReviewComments, \
     REVIEW_COMMENTS_ANNOTATION_KEY, CommentAddedEvent, ICommentAddedEvent, IReviewTarget
-from pyams_content.shared.common.interfaces import IWfSharedContentRoles
 from pyams_i18n.interfaces import II18n
 from pyams_mail.interfaces import IPrincipalMailInfo
 from pyams_security.interfaces import ISecurityManager, IProtectedObject
@@ -124,6 +123,8 @@
 
     def ask_review(self, reviewers, comment, notify_all=True):
         """Ask for content review"""
+        from pyams_content.shared.common.interfaces import IWfSharedContentRoles
+
         roles = IWfSharedContentRoles(self.context, None)
         if roles is None:
             return