Logo Search packages:      
Sourcecode: zope-cmfactionicons version File versions

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 130 of file standard_mappings.py.

00130                                                                                :

    """ Add the specified mappings to the tool.

    o If 'clear_first', then zap existing mappings first.
    """
    if clear_first:
        tool.clearActionIcons()

    for mapping in mappings:
        tool.addActionIcon( category=mapping[ 'category' ]
                          , action_id=mapping[ 'action_id' ]
                          , icon_expr=mapping[ 'icon_expr' ]
                          , title=mapping[ 'title' ]
                          , priority=mapping[ 'priority' ]
                          )
                          )


Generated by  Doxygen 1.6.0   Back to index