src/pyams_default_theme/features/search/portlet/interfaces.py
changeset 548 356a54a98a51
parent 472 ebef14b037b3
equal deleted inserted replaced
547:ac39aec467ea 548:356a54a98a51
    13 from collections import OrderedDict
    13 from collections import OrderedDict
    14 
    14 
    15 from zope.contentprovider.interfaces import IContentProvider
    15 from zope.contentprovider.interfaces import IContentProvider
    16 from zope.interface import Attribute, Interface
    16 from zope.interface import Attribute, Interface
    17 from zope.schema import Bool, Choice, Int
    17 from zope.schema import Bool, Choice, Int
    18 from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
    18 from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
    19 
    19 
    20 from pyams_i18n.schema import I18nTextLineField
    20 from pyams_i18n.schema import I18nTextLineField
    21 
    21 
    22 
    22 
    23 __docformat__ = 'restructuredtext'
    23 __docformat__ = 'restructuredtext'
    90                                  required=True,
    90                                  required=True,
    91                                  vocabulary=PANELS_HEADER_DISPLAY_MODES_VOCABULARY,
    91                                  vocabulary=PANELS_HEADER_DISPLAY_MODES_VOCABULARY,
    92                                  default=FULL_HEADER_DISPLAY)
    92                                  default=FULL_HEADER_DISPLAY)
    93 
    93 
    94     start_length = Int(title=_("Start length"),
    94     start_length = Int(title=_("Start length"),
    95                        description=_("If you choose to display only header start, you can specify "
    95                        description=_("If you choose to display only header start, you can "
    96                                      "maximum text length"),
    96                                      "specify maximum text length"),
    97                        required=True,
    97                        required=True,
    98                        default=120)
    98                        default=120)
    99 
    99 
   100     button_title = I18nTextLineField(title=_("Button's title"),
   100     button_title = I18nTextLineField(title=_("Button's title"),
   101                                      description=_("Navigation button's title is normally defined "
   101                                      description=_("Navigation button's title is normally "
   102                                                    "based on target's content type; you can "
   102                                                    "defined based on target's content type; you "
   103                                                    "override this label by giving a custom title "
   103                                                    "can override this label by giving a custom "
   104                                                    "here"),
   104                                                    "title here"),
   105                                      required=False)
   105                                      required=False)