--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_default_theme/features/search/portlet/interfaces.py Tue Nov 27 08:51:14 2018 +0100
@@ -0,0 +1,37 @@
+#
+# 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 zope.schema import Bool
+
+from pyams_default_theme import _
+
+
+class ISearchResultsPortletDefaultRendererSettings(Interface):
+ """Search results portlet default renderer settings interface"""
+
+ display_results_count = Bool(title=_("Display results count?"),
+ description=_("If 'no', results count will not be displayed"),
+ required=True,
+ default=True)
+
+ allow_sorting = Bool(title=_("Allow results sorting?"),
+ description=_("If 'no', results will not be sortable"),
+ required=True,
+ default=True)
+
+ allow_pagination = Bool(title=_("Allow pagination?"),
+ description=_("If 'no', results will not be paginated"),
+ required=True,
+ default=True)