Moved internal references interfaces from pyams_content package
authorThierry Florac <tflorac@ulthar.net>
Thu, 08 Feb 2018 13:28:09 +0100
changeset 27 486483c8f4e2
parent 26 c3aaa995165b
child 28 83dc4748dbbb
Moved internal references interfaces from pyams_content package
src/pyams_sequence/interfaces/__init__.py
--- a/src/pyams_sequence/interfaces/__init__.py	Sat Jan 27 00:41:03 2018 +0100
+++ b/src/pyams_sequence/interfaces/__init__.py	Thu Feb 08 13:28:09 2018 +0100
@@ -16,6 +16,7 @@
 # import standard library
 
 # import interfaces
+from pyams_sequence.schema import InternalReference, InternalReferencesList
 from zope.annotation.interfaces import IAttributeAnnotatable
 
 # import packages
@@ -93,3 +94,21 @@
                                description=_("Prefix used to generate hexadecimal ID, placed after utility prefix. "
                                              "Generally defined at class level..."),
                                required=False)
+
+
+class IInternalReference(Interface):
+    """Internal link 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)
+
+
+class IInternalReferencesList(Interface):
+    """Internal references list"""
+
+    references = InternalReferencesList(title=_("Internal references"),
+                                        description=_("List of internal references"),
+                                        required=False)
\ No newline at end of file