src/pyams_content/shared/site/portlet/interfaces.py
changeset 1028 3a608029647e
child 1118 ed551ca7c4de
equal deleted inserted replaced
1027:f5244268e151 1028:3a608029647e
       
     1 #
       
     2 # Copyright (c) 2008-2018 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 from pyams_i18n.schema import I18nTextLineField
       
    16 from pyams_portal.interfaces import IPortletSettings
       
    17 
       
    18 from pyams_content import _
       
    19 
       
    20 
       
    21 class ISiteContainerSummaryPortletSettings(IPortletSettings):
       
    22     """Site container summary portlet settings"""
       
    23 
       
    24     button_title = I18nTextLineField(title=_("Button's title"),
       
    25                                      description=_("Navigation button's title is normally defined based on "
       
    26                                                    "target's content type; you can override this label by giving a "
       
    27                                                    "custom title here"),
       
    28                                      required=False)