Back to index

plone3  3.1.7
Functions
kss.core.pluginregistry.configure Namespace Reference

Functions

def registerEventType
def registerAction
def registerSelectorType
def registerCommandSet
def registerParamProvider

Function Documentation

def kss.core.pluginregistry.configure.registerAction (   _context,
  name,
  jsfile = None,
  command_factory = 'none',
  params_mandatory = [],
  params_optional = [],
  deprecated = None 
)

Definition at line 41 of file configure.py.

00041 
00042         params_mandatory=[], params_optional=[], deprecated=None):
00043     'Directive that registers an action.' 
00044     
00045     # check to see if the file exists
00046     if jsfile is not None:
00047         file(jsfile, 'rb').close()
00048 
00049     _context.action(
00050         discriminator = ('registerKssAction', name, jsfile),
00051         callable = registerPlugin,
00052         args = (Action, IAction, name, jsfile, command_factory, params_mandatory, params_optional, deprecated),
00053         )

Here is the call graph for this function:

Here is the caller graph for this function:

def kss.core.pluginregistry.configure.registerCommandSet (   _context,
  for_,
  class_,
  name,
  provides 
)

Definition at line 67 of file configure.py.

00067 
00068 def registerCommandSet(_context, for_, class_, name, provides):
00069     'Directive that registers a command set' 
00070     
00071     adapter(_context, [class_], provides, [for_])
00072     _context.action(
00073         discriminator = ('registerKssCommandSet', name),
00074         callable = registerAndAllowCommandSet,
00075         args = (class_, name, provides),
00076         )

def kss.core.pluginregistry.configure.registerEventType (   _context,
  name,
  jsfile = None 
)

Definition at line 27 of file configure.py.

00027 
00028 def registerEventType(_context, name, jsfile=None):
00029     'Directive that registers an event type' 
00030     
00031     # check to see if the file exists
00032     if jsfile is not None:
00033         file(jsfile, 'rb').close()
00034 
00035     _context.action(
00036         discriminator = ('registerKssEventType', name, jsfile),
00037         callable = registerPlugin,
00038         args = (EventType, IEventType, name, jsfile),
00039         )
 

Here is the call graph for this function:

def kss.core.pluginregistry.configure.registerParamProvider (   _context,
  name,
  jsfile = None 
)

Definition at line 77 of file configure.py.

00077 
00078 def registerParamProvider(_context, name, jsfile=None):
00079     'Directive that registers a parameter provider' 
00080     
00081     # check to see if the file exists
00082     if jsfile is not None:
00083         file(jsfile, 'rb').close()
00084 
00085     _context.action(
00086         discriminator = ('registerKssParamProvider', name),
00087         callable = registerPlugin,
00088         args = (ParamProvider, IParamProvider, name, jsfile),
00089         )

Here is the call graph for this function:

def kss.core.pluginregistry.configure.registerSelectorType (   _context,
  name,
  jsfile = None 
)

Definition at line 54 of file configure.py.

00054 
00055 def registerSelectorType(_context, name, jsfile=None):
00056     'Directive that registers a selector type' 
00057     
00058     # check to see if the file exists
00059     if jsfile is not None:
00060         file(jsfile, 'rb').close()
00061 
00062     _context.action(
00063         discriminator = ('registerKssSelectorType', name, jsfile),
00064         callable = registerPlugin,
00065         args = (SelectorType, ISelectorType, name, jsfile),
00066         )

Here is the call graph for this function: