--- a/src/pyams_content/shared/view/interfaces.py Fri Nov 13 13:08:48 2020 +0100
+++ b/src/pyams_content/shared/view/interfaces.py Fri Nov 13 13:11:29 2020 +0100
@@ -10,15 +10,12 @@
# FOR A PARTICULAR PURPOSE.
#
-__docformat__ = 'restructuredtext'
-
from collections import OrderedDict
from zope.interface import Attribute, Interface
from zope.schema import Bool, Choice, Int, Set
from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
-from pyams_content import _
from pyams_content.shared.common.interfaces import ISharedContent, ISharedTool, IWfSharedContent, \
SHARED_CONTENT_TYPES_VOCABULARY
from pyams_content.shared.common.interfaces.types import ALL_DATA_TYPES_VOCABULARY
@@ -27,6 +24,11 @@
from pyams_thesaurus.schema import ThesaurusTermsListField
+__docformat__ = 'restructuredtext'
+
+from pyams_content import _
+
+
VIEW_CONTENT_TYPE = 'view'
VIEW_CONTENT_NAME = _('View')
@@ -273,6 +275,12 @@
themes = ThesaurusTermsListField(title=_("Other themes"),
required=False)
+ include_subthemes = Bool(title=_("Include all subthemes?"),
+ description=_("If 'yes', subthemes of selected themes will also "
+ "be used to search contents"),
+ required=False,
+ default=False)
+
def get_themes(self, context):
"""Get all themes for given context"""