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