src/pyams_content/component/keynumber/portlet/interfaces/__init__.py
changeset 705 6490cb72a126
parent 702 5d1e4e777dbc
child 719 79281dfc31f0
equal deleted inserted replaced
704:9a84fae4ec97 705:6490cb72a126
       
     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_i18n.schema import I18nTextLineField, I18nTextField
       
    23 
       
    24 from pyams_content import _
       
    25 
       
    26 
       
    27 class IKeyNumberPortletSettings(IPortletSettings):
       
    28     """Key numbers portlet settings interface"""
       
    29 
       
    30     title = I18nTextLineField(title=_("Title"),
       
    31                               description=_("Portlet title"),
       
    32                               required=False)
       
    33 
       
    34     teaser = I18nTextField(title=_("Teaser"),
       
    35                            description=_("Short text displayed above key numbers"),
       
    36                            required=False)