source: products/quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/interfaces.py @ 1181

Last change on this file since 1181 was 1181, checked in by piv, 15 years ago

make configlet work, add tests for controlpanel, some minor fixes to interfaces and dependencies

  • Property svn:eol-style set to native
File size: 3.4 KB
Line 
1# -*- coding: utf-8 -*-
2from zope import schema
3from zope.interface import Interface
4
5from plone.theme.interfaces import IDefaultPloneLayer
6
7from quintagroup.dropdownmenu import _
8
9
10class IDropDownMenuLayer(IDefaultPloneLayer):
11    """Request marker installed via browserlayer.xml.
12    """
13
14
15class IDropDownMenuSettings(Interface):
16    """Global dropdown menu settings. This describes records stored in the
17    configuration registry and obtainable via plone.registry.
18    """
19   
20    show_content_tabs = schema.Bool(
21        title=_(u"Show content tabs"),
22        description=_(u"Use this setting to enable or disable content structure "
23                      u"based (autogenerated) portal tabs."),
24        default=True)
25
26    show_nonfolderish_tabs = schema.Bool(
27        title=_(u"Show non-folderish content tabs"),
28        description=_(u"Use this setting to enable or disable non-folderish "
29                      u"content structure based (autogenerated) portal tabs. "
30                      u"This setting doesn't make sense in case Show content "
31                      u"tabs is switched off."),
32        default=True)
33
34    content_before_actions_tabs = schema.Bool(
35        title=_(u"Show content tabs before portal_actions tabs"),
36        description=_(u"By default portal_actons based tabs are placed before "
37                      u"those autogenerated from content structure. Check this "
38                      u"option to revert the behaviour."),
39        default=False)
40
41    content_tabs_level = schema.Int(
42        title=_(u"Content tabs level"),
43        description=_(u"How many folders should be included before the "
44                      u"nested menu stops. 0 means no limit. 1 only includes "
45                      u"the root folder."),
46        default=0)
47
48    show_actions_tabs = schema.Bool(
49        title=_(u"Show actions tabs"),
50        description=_(u"Use this setting to enable or disable portal_actions "
51                      u"based portal tabs."),
52        default=True)
53
54    actions_tabs_level = schema.Int(
55        title=_(u"Actions tabs level"),
56        description=_(u"How many folders should be included before the "
57                      u"nested menu stops. 0 means no limit. 1 only includes "
58                      u"the root folder."),
59        default=0)
60
61    actions_category = schema.TextLine(
62        title=_(u"Portal actions category"),
63        description=_(u"Root portal actions tool's category name to extract "
64                      u"tabs from."),
65        default=u"portal_tabs")
66
67    nested_category_prefix = schema.TextLine(
68        title=_(u"Nested category prefix"),
69        description=_(u"Because portal_actions category object couldn't serve as"
70                      u" action itself we need to create appropriate action "
71                      u"for it. Prefix and sufix strings are used to make up "
72                      u"id for category while linking action to action category."
73                      u"E.g.: action id is 'index_html', prefix is 'pre_', sufix"
74                      u" is equal to '_sub' then category object with id equal "
75                      u"to 'pre_index_html_sub' will be looked up on the same "
76                      u"level to get nested menu for 'index_html' action."),
77        default=u"")
78
79    nested_category_sufix = schema.TextLine(
80        title=_(u"Nested category sufix"),
81        description=_(u"Sufix part of the category id to be looked up during "
82                      u"linking with action."),
83        default=u"_sub")
Note: See TracBrowser for help on using the repository browser.