Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
plone.app.contentmenu.menu.ActionsSubMenuItem Class Reference
Inheritance diagram for plone.app.contentmenu.menu.ActionsSubMenuItem:
Inheritance graph
[legend]
Collaboration diagram for plone.app.contentmenu.menu.ActionsSubMenuItem:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getToolByName
def action
def available
def selected

Public Attributes

 context_state

Static Public Attributes

tuple title = _(u'label_actions_menu', default=u'Actions')
tuple description = _(u'title_actions_menu', default=u'Actions for the current content item')
string submenuId = 'plone_contentmenu_actions'
int order = 10
dictionary extra = {'id': 'plone-contentmenu-actions'}

Detailed Description

Definition at line 45 of file menu.py.


Constructor & Destructor Documentation

def plone.app.contentmenu.menu.ActionsSubMenuItem.__init__ (   self,
  context,
  request 
)

Definition at line 55 of file menu.py.

00055 
00056     def __init__(self, context, request):
00057         BrowserSubMenuItem.__init__(self, context, request)
00058         self.context_state = getMultiAdapter((context, request), name='plone_context_state')

Here is the caller graph for this function:


Member Function Documentation

Definition at line 63 of file menu.py.

00063 
00064     def action(self):
00065         folder = self.context
00066         if not self.context_state.is_structural_folder():
00067             folder = utils.parent(self.context)
00068         return folder.absolute_url() + '/folder_contents'

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 70 of file menu.py.

00070 
00071     def available(self):
00072         actions_tool = self.getToolByName('portal_actions')
00073         editActions = actions_tool.listActionInfos(object=aq_inner(self.context), categories=('object_buttons',), max=1)
00074         return len(editActions) > 0

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 59 of file menu.py.

00059 
00060     def getToolByName(self, tool):
00061         return getToolByName(getSite(), tool)

Here is the caller graph for this function:

Definition at line 75 of file menu.py.

00075 
00076     def selected(self):
00077         return False
00078 


Member Data Documentation

Definition at line 57 of file menu.py.

tuple plone.app.contentmenu.menu.ActionsSubMenuItem.description = _(u'title_actions_menu', default=u'Actions for the current content item') [static]

Definition at line 49 of file menu.py.

dictionary plone.app.contentmenu.menu.ActionsSubMenuItem.extra = {'id': 'plone-contentmenu-actions'} [static]

Definition at line 53 of file menu.py.

Definition at line 52 of file menu.py.

string plone.app.contentmenu.menu.ActionsSubMenuItem.submenuId = 'plone_contentmenu_actions' [static]

Definition at line 50 of file menu.py.

tuple plone.app.contentmenu.menu.ActionsSubMenuItem.title = _(u'label_actions_menu', default=u'Actions') [static]

Definition at line 48 of file menu.py.


The documentation for this class was generated from the following file: