Updated content link interface
authorThierry Florac <tflorac@ulthar.net>
Thu, 08 Feb 2018 15:02:55 +0100
changeset 380 4d6e2ed222a3
parent 379 8f90682f0fce
child 381 1972af31d945
Updated content link interface
src/pyams_content/shared/site/interfaces/__init__.py
--- a/src/pyams_content/shared/site/interfaces/__init__.py	Thu Feb 08 13:32:53 2018 +0100
+++ b/src/pyams_content/shared/site/interfaces/__init__.py	Thu Feb 08 15:02:55 2018 +0100
@@ -17,7 +17,7 @@
 
 # import interfaces
 from pyams_content.interfaces import IBaseContent
-from pyams_sequence.interfaces import ISequentialIdTarget
+from pyams_sequence.interfaces import ISequentialIdTarget, IInternalReference
 from pyams_workflow.interfaces import IWorkflowPublicationSupport
 from zope.container.interfaces import IContainer, IContained
 
@@ -25,7 +25,6 @@
 from pyams_content.shared.common.interfaces import ISharedSite, IWfSharedContent, ISharedContent, \
     IBaseContentManagerRoles, IBaseSharedTool, IDeletableElement
 from pyams_i18n.schema import I18nTextLineField
-from pyams_sequence.schema import InternalReference
 from zope.container.constraints import containers, contains
 from zope.interface import Attribute
 from zope.schema import Text, Bool
@@ -86,15 +85,9 @@
     """Workflow managed topic interface"""
 
 
-class IContentLink(ISiteElement):
+class IContentLink(ISiteElement, IInternalReference):
     """Rented content interface"""
 
-    reference = InternalReference(title=_("Internal reference"),
-                                  description=_("Internal link target reference. You can search a reference using "
-                                                "'+' followed by internal number, of by entering text matching "
-                                                "content title."),
-                                  required=True)
-
     alt_title = I18nTextLineField(title=_("Alternate title"),
                                   description=_("Content title, as shown in front-office"),
                                   required=False)