src/pyams_content/shared/view/portlet/interfaces.py
changeset 116 f356c84860a3
child 193 595d2965fc4d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_content/shared/view/portlet/interfaces.py	Wed Jul 12 11:58:14 2017 +0200
@@ -0,0 +1,32 @@
+#
+# 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 pyams_portal.interfaces import IPortletSettings
+
+# import packages
+from pyams_sequence.schema import InternalReference
+
+from pyams_content import _
+
+
+class IViewItemsPortletSettings(IPortletSettings):
+    """View items portlet settings interface"""
+
+    view = InternalReference(title=_("Selected view"),
+                             description=_("Reference to the view from which items are extracted"),
+                             required=True)