src/pyams_content/shared/site/link.py
changeset 1028 3a608029647e
parent 1019 43884f675be0
child 1030 8046e05b206d
--- a/src/pyams_content/shared/site/link.py	Fri Oct 19 17:19:36 2018 +0200
+++ b/src/pyams_content/shared/site/link.py	Mon Oct 22 17:10:16 2018 +0200
@@ -19,9 +19,8 @@
 
 from pyams_content.shared.site.interfaces import IContentLink, ISiteElementNavigation
 from pyams_sequence.reference import get_reference_target
-from pyams_skin.layer import IPyAMSLayer, IPyAMSUserLayer
+from pyams_skin.layer import IPyAMSLayer
 from pyams_utils.adapter import ContextRequestAdapter, adapter_config
-from pyams_utils.interfaces.url import IRelativeURL
 from pyams_utils.zodb import volatile_property
 from pyams_workflow.interfaces import IWorkflow, IWorkflowPublicationInfo, IWorkflowState, IWorkflowVersion, \
     IWorkflowVersions
@@ -96,11 +95,3 @@
     target = context.get_target()
     if target is not None:
         return IWorkflowPublicationInfo(target, None)
-
-
-@adapter_config(context=(IContentLink, IPyAMSUserLayer), provides=IRelativeURL)
-def content_link_relative_url(context):
-    """Content link relative URL"""
-    target = context.get_target()
-    if target is not None:
-        return IRelativeURL(target, None)