#
# Copyright (c) 2008-2015 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'
# import standard library
# import interfaces
from zope.interface import Interface
from zope.schema import Bool
# import packages
from pyams_thesaurus import _
[docs]class IThesaurusTermFieldIndex(Interface):
"""Thesaurus term field index interface"""
include_parents = Bool(title=_("Include term parents into index values"),
default=False,
required=False)
include_synonyms = Bool(title=_("Include term synonyms into index values"),
default=False,
required=False)
[docs]class IThesaurusTermsListFieldIndex(Interface):
"""Thesaurus terms list field index interface"""
include_parents = Bool(title=_("Include term parents into index values"),
default=False,
required=False)
include_synonyms = Bool(title=_("Include term synonyms into index values"),
default=False,
required=False)