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

def CMFActionIcons::ActionIconsTool::ActionIconsTool::removeActionIcon (   self,
  category,
  action_id 
)

Remove the icon for the given action.

o Raise KeyError if an icon has not already been defined.

Definition at line 325 of file ActionIconsTool.py.

00325                                                      :

        """ Remove the icon for the given action.

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

        icons = list( self._icons )
        icon = self._lookup[ ( category, action_id ) ]
        icons.remove( icon )
        del self._lookup[ ( category, action_id ) ]
        self._icons = tuple( icons )

    security.declareProtected( ManageSite, 'clearActionIcons' )
    def clearActionIcons( self ):


Generated by  Doxygen 1.6.0   Back to index