source: products/quintagroup.plonetabs/trunk/quintagroup/plonetabs/browser/interfaces.py

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

Merged tests branch

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