source: products/quintagroup.plonetabs/branches/nokss/quintagroup/plonetabs/browser/interfaces.py @ 3682

Last change on this file since 3682 was 3437, checked in by potar, 12 years ago

Merged tests branch

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