1 | from zope.interface import Interface, Attribute |
---|
2 | |
---|
3 | class IPloneTabsControlPanel(Interface): |
---|
4 | """Configlet for managing portal_actions, quintagroup.plonetabs""" |
---|
5 | |
---|
6 | prefix = Attribute('prefix', 'Prefix to apply on edit forms') |
---|
7 | sufix = Attribute('sufix', 'Sufix to apply on edit forms') |
---|
8 | |
---|
9 | def getPageTitle(category='portal_tabs'): |
---|
10 | """Return Title for configlet page for given category""" |
---|
11 | |
---|
12 | def hasActions(category="portal_tabs"): |
---|
13 | """Whether there are actions in portal_actions with given category""" |
---|
14 | |
---|
15 | def getPortalActions(category="portal_tabs"): |
---|
16 | """Return portal actions with given category""" |
---|
17 | |
---|
18 | def isGeneratedTabs(): |
---|
19 | """Whether disable_folder_section field is turned off""" |
---|
20 | |
---|
21 | def isNotFoldersGenerated(): |
---|
22 | """Whether disable_nonfolderish_sections field is turned off""" |
---|
23 | |
---|
24 | def getActionsList(category="portal_tabs"): |
---|
25 | """Return html code for actions list with given category""" |
---|
26 | |
---|
27 | def getAutoGenereatedSection(cat_name, errors): |
---|
28 | """Return html code for all autogenerated section""" |
---|
29 | |
---|
30 | def getGeneratedTabs(): |
---|
31 | """Return html code for autogenerated tabs""" |
---|
32 | |
---|
33 | def getRootTabs(): |
---|
34 | """Return portal root elements""" |
---|
35 | |
---|
36 | def getCategories(): |
---|
37 | """Return list of categories contained in portal_actions tool""" |
---|
38 | |
---|
39 | def portal_tabs(): |
---|
40 | """See global-sections viewlet""" |
---|
41 | |
---|
42 | def selected_portal_tab(): |
---|
43 | """See global-sections viewlet""" |
---|
44 | |
---|
45 | def test(condition, ifTrue, ifFalse): |
---|
46 | """Instead of test function in skins page templates""" |
---|
47 | |
---|