Package CMFActionIcons :: Module standard_mappings
[show private | hide private]
[frames | no frames]

Module CMFActionIcons.standard_mappings

ActionIcons tool: standard CMF mappings.

This module makes available a "starter set" of action -> icon mappings. It will be installed by default when the tool is set up, unless an alternate set is provided.

$Id: standard_mappings.py 21452 2005-05-06 18:20:01Z fguillaume $
Function Summary
  installActionIconMappings(tool, mappings, clear_first)
Add the specified mappings to the tool.

Variable Summary
tuple DEFAULT_MAPPINGS = ({'category': 'object', 'priority': 0...
tuple FOLDER_ACTIONS = ({'category': 'folder', 'priority': 0, ...
tuple GLOBAL_ACTIONS = ({'category': 'global', 'priority': 0, ...
tuple OBJECT_ACTIONS = ({'category': 'object', 'priority': 0, ...
tuple WORKFLOW_ACTIONS = ({'category': 'workflow', 'priority':...

Function Details

installActionIconMappings(tool, mappings=({'category': 'object', 'priority': 0, 'title': 'View', '..., clear_first=1)

Add the specified mappings to the tool.

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

Variable Details

DEFAULT_MAPPINGS

Type:
tuple
Value:
({'action_id': 'view',
  'category': 'object',
  'icon_expr': 'view_icon.png',
  'priority': 0,
  'title': 'View'},
 {'action_id': 'preview',
  'category': 'object',
  'icon_expr': 'preview_icon.png',
...                                                                    

FOLDER_ACTIONS

Type:
tuple
Value:
({'action_id': 'folderContents',
  'category': 'folder',
  'icon_expr': 'folder_icon.png',
  'priority': 0,
  'title': 'Folder Contents'},
 {'action_id': 'localroles',
  'category': 'folder',
  'icon_expr': 'user_icon.png',
...                                                                    

GLOBAL_ACTIONS

Type:
tuple
Value:
({'action_id': 'undo',
  'category': 'global',
  'icon_expr': 'undo_icon.png',
  'priority': 0,
  'title': 'Undo'},
 {'action_id': 'configPortal',
  'category': 'global',
  'icon_expr': 'policies_icon.png',
...                                                                    

OBJECT_ACTIONS

Type:
tuple
Value:
({'action_id': 'view',
  'category': 'object',
  'icon_expr': 'view_icon.png',
  'priority': 0,
  'title': 'View'},
 {'action_id': 'preview',
  'category': 'object',
  'icon_expr': 'preview_icon.png',
...                                                                    

WORKFLOW_ACTIONS

Type:
tuple
Value:
({'action_id': 'submit',
  'category': 'workflow',
  'icon_expr': 'submit_icon.png',
  'priority': 0,
  'title': 'Submit'},
 {'action_id': 'history',
  'category': 'workflow',
  'icon_expr': 'history_icon.png',
...                                                                    

Generated by Epydoc 2.1 on Mon Jun 27 12:46:59 2005 http://epydoc.sf.net