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

def CMFActionIcons::ActionIconsTool::ActionIconsTool::addActionIcon (   self,
  category,
  action_id,
  icon_expr,
  title = None,
  priority = 0 
)

Add an icon for the given action.

o Raise KeyError if an icon has already been defined.

Definition at line 270 of file ActionIconsTool.py.

                      :

        """ Add an icon for the given action.

        o Raise KeyError if an icon has already been defined.
        """
        if self.queryActionInfo( category, action_id ) is not None:
            raise KeyError, 'Duplicate definition!'

        icons = list( self._icons )
        icons.append( ActionIcon( category
                                , action_id
                                , icon_expr
                                , title
                                , priority
                                ) )
        self._lookup[ ( category, action_id ) ] = icons[-1]
        self._icons = tuple( icons )

    security.declareProtected( ManageSite, 'updateActionIcon' )
    def updateActionIcon( self


Generated by  Doxygen 1.6.0   Back to index