src/pyams_content/shared/view/portlet/interfaces.py
changeset 116 f356c84860a3
child 193 595d2965fc4d
equal deleted inserted replaced
115:67a6a3b92612 116:f356c84860a3
       
     1 #
       
     2 # Copyright (c) 2008-2015 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 
       
    16 # import standard library
       
    17 
       
    18 # import interfaces
       
    19 from pyams_portal.interfaces import IPortletSettings
       
    20 
       
    21 # import packages
       
    22 from pyams_sequence.schema import InternalReference
       
    23 
       
    24 from pyams_content import _
       
    25 
       
    26 
       
    27 class IViewItemsPortletSettings(IPortletSettings):
       
    28     """View items portlet settings interface"""
       
    29 
       
    30     view = InternalReference(title=_("Selected view"),
       
    31                              description=_("Reference to the view from which items are extracted"),
       
    32                              required=True)