Back to index

plone3  3.1.7
Classes | Functions
kss.core.pluginregistry.action Namespace Reference

Classes

class  Action

Functions

def checkRegisteredCommand

Function Documentation

Definition at line 23 of file action.py.

00023 
00024 def checkRegisteredCommand(name):
00025     'Check if it is a registered command.'
00026     try:
00027         command = capi.getUtility(IAction, name)
00028     except capi.ComponentLookupError:
00029         raise KSSPluginError, '"%s" is not a registered kss command' % (name, )
00030     # check if the action has a valid command factory
00031     if command.command_factory == 'none':
00032         raise KSSPluginError, '"%s" kss command has missing command_factory' % (name, )
00033     # issue deprecation warning, if necessary
00034     command.check_deprecation()

Here is the caller graph for this function: