Back to index

plone3  3.1.7
Functions | Variables
CMFActionIcons.standard_mappings Namespace Reference

Functions

def installActionIconMappings

Variables

 OBJECT_ACTIONS = \
 Copyright (c) 2003 Zope Corporation and Contributors.
 FOLDER_ACTIONS = \
 WORKFLOW_ACTIONS = \
 GLOBAL_ACTIONS = \
tuple DEFAULT_MAPPINGS

Function Documentation

def CMFActionIcons.standard_mappings.installActionIconMappings (   tool,
  mappings = DEFAULT_MAPPINGS,
  clear_first = 1 
)
Add the specified mappings to the tool.

o If 'clear_first', then zap existing mappings first.

Definition at line 142 of file standard_mappings.py.

00142 
00143 def installActionIconMappings( tool, mappings=DEFAULT_MAPPINGS, clear_first=1 ):
00144 
00145     """ Add the specified mappings to the tool.
00146 
00147     o If 'clear_first', then zap existing mappings first.
00148     """
00149     if clear_first:
00150         tool.clearActionIcons()
00151 
00152     for mapping in mappings:
00153         tool.addActionIcon( category=mapping[ 'category' ]
00154                           , action_id=mapping[ 'action_id' ]
00155                           , icon_expr=mapping[ 'icon_expr' ]
00156                           , title=mapping[ 'title' ]
00157                           , priority=mapping[ 'priority' ]
00158                           )

Variable Documentation

Initial value:
00001 ( OBJECT_ACTIONS
00002                    + FOLDER_ACTIONS
00003                    + WORKFLOW_ACTIONS
00004                    + GLOBAL_ACTIONS
00005                    )

Definition at line 136 of file standard_mappings.py.

Definition at line 49 of file standard_mappings.py.

Definition at line 115 of file standard_mappings.py.

Copyright (c) 2003 Zope Corporation and Contributors.

All Rights Reserved.

This software is subject to the provisions of the Zope Public License, Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.

Definition at line 22 of file standard_mappings.py.

Definition at line 70 of file standard_mappings.py.