src/pyams_content/features/thesaurus/interfaces.py
changeset 1132 f1276d7bc4ce
child 1228 23e479c7ae90
equal deleted inserted replaced
1131:64747fd623b3 1132:f1276d7bc4ce
       
     1 #
       
     2 # Copyright (c) 2008-2018 Thierry Florac <tflorac AT ulthar.net>
       
     3 # All Rights Reserved.
       
     4 #
       
     5 # This software is subject to the provisions of the Zope Public License,
       
     6 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
       
     7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
       
     8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
       
     9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
       
    10 # FOR A PARTICULAR PURPOSE.
       
    11 #
       
    12 
       
    13 __docformat__ = 'restructuredtext'
       
    14 
       
    15 from zope.interface import Interface
       
    16 
       
    17 from pyams_i18n.schema import I18nHTMLField
       
    18 
       
    19 from pyams_content import _
       
    20 
       
    21 
       
    22 THESAURUS_TERM_HTML_INFO_KEY = 'pyams_content.term.html_info'
       
    23 
       
    24 
       
    25 class IThesaurusTermHTMLInfo(Interface):
       
    26     """Thesaurus term HTML info"""
       
    27 
       
    28     description = I18nHTMLField(title=_("HTML content"),
       
    29                                 required=False)
       
    30 
       
    31 
       
    32 class IThesaurusTermHTMLTarget(Interface):
       
    33     """Thesaurus term HTML description target"""