def updateActionIcon( self , category , action_id , icon_expr , title=None , priority=0 ): """ update ActionIcons and remove cache entry """ BaseTool.updateActionIcon(self, category, action_id, icon_expr, title, priority) removeAICacheEntry(category, action_id)
def updateActionIcon(self, category, action_id, icon_expr, title=None, priority=0): """ update ActionIcons and remove cache entry """ log_deprecated("The icon for the '%s/%s' action is being updated on " "the action icons tool. The action icons tool has " "been deprecated and will be removed in Plone 5. " "You should register action icons directly on the " "action now, using the 'icon_expr' " "setting." % (category, action_id)) BaseTool.updateActionIcon(self, category, action_id, icon_expr, title, priority) removeAICacheEntry(category, action_id)