Back to index

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

Classes

class  CommandSet

Functions

def getRegisteredCommandSet
def registerAndAllowCommandSet

Function Documentation

Definition at line 25 of file commandset.py.

00025 
00026 def getRegisteredCommandSet(name):
00027     'Get the command set'
00028     try:
00029         commandset = capi.getUtility(ICommandSet, name)
00030     except capi.ComponentLookupError:
00031         raise KSSPluginError, '"%s" is not a registered kss command set' % (name, )
00032     return commandset

Here is the caller graph for this function:

def kss.core.pluginregistry.commandset.registerAndAllowCommandSet (   class_,
  name,
  provides,
  arg,
  kw 
)

Definition at line 47 of file commandset.py.

00047 
00048 def registerAndAllowCommandSet(class_, name, provides, *arg, **kw):
00049     registerPlugin(CommandSet, ICommandSet, name, provides, *arg, **kw)
00050     try:
00051         import Products.Five
00052     except ImportError:
00053         pass
00054     else:
00055         # Allow TTW to use commandsets
00056         from AccessControl import allow_class
00057         allow_class(class_)
00058     

Here is the call graph for this function: