src/pyams_content/features/thesaurus/interfaces.py
changeset 1132 f1276d7bc4ce
child 1228 23e479c7ae90
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_content/features/thesaurus/interfaces.py	Tue Nov 27 17:11:57 2018 +0100
@@ -0,0 +1,33 @@
+#
+# Copyright (c) 2008-2018 Thierry Florac <tflorac AT ulthar.net>
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+
+__docformat__ = 'restructuredtext'
+
+from zope.interface import Interface
+
+from pyams_i18n.schema import I18nHTMLField
+
+from pyams_content import _
+
+
+THESAURUS_TERM_HTML_INFO_KEY = 'pyams_content.term.html_info'
+
+
+class IThesaurusTermHTMLInfo(Interface):
+    """Thesaurus term HTML info"""
+
+    description = I18nHTMLField(title=_("HTML content"),
+                                required=False)
+
+
+class IThesaurusTermHTMLTarget(Interface):
+    """Thesaurus term HTML description target"""