Back to index

plone3  3.1.7
Public Member Functions
plone.app.contentmenu.displayviewsmenu.DisplayViewsMenu Class Reference
Inheritance diagram for plone.app.contentmenu.displayviewsmenu.DisplayViewsMenu:
Inheritance graph
[legend]
Collaboration diagram for plone.app.contentmenu.displayviewsmenu.DisplayViewsMenu:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def getMenuItemByAction

Detailed Description

Definition at line 8 of file displayviewsmenu.py.


Member Function Documentation

def plone.app.contentmenu.displayviewsmenu.DisplayViewsMenu.getMenuItemByAction (   self,
  object,
  request,
  action 
)

Definition at line 12 of file displayviewsmenu.py.

00012 
00013     def getMenuItemByAction(self, object, request, action):
00014         # Normalize actions; strip view prefix
00015         if action.startswith('@@'):
00016             action = action[2:]
00017         if action.startswith('++view++'):
00018             action = action[8:]
00019 
00020         for name, item in getAdapters((object, request),
00021                                       self.getMenuItemType()):
00022             item_action = item.action
00023             # Normalize menu item action; never uses ++view++
00024             if item_action.startswith('@@'):
00025                 item_action = item_action[2:]
00026 
00027             if item_action == action:
00028                 return item

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