Back to index

plone3  3.1.7
Classes | Functions | Variables
PluggableAuthService.zcml Namespace Reference

Classes

class  IRegisterMultiPlugin

Functions

def registerMultiPlugin
def cleanUp

Variables

list _mt_regs = []

Function Documentation

Definition at line 60 of file zcml.py.

00060 
00061 def cleanUp():
00062     global _mt_regs
00063     for meta_type in _mt_regs:
00064         MultiPlugins.remove(meta_type)
00065     _mt_regs = []

def PluggableAuthService.zcml.registerMultiPlugin (   _context,
  class_ = None,
  meta_type = None 
)
Add a new meta_type to the registry.

Definition at line 41 of file zcml.py.

00041 
00042 def registerMultiPlugin(_context, class_=None, meta_type=None):
00043     """ Add a new meta_type to the registry.
00044     """
00045     if not class_ and not meta_type:
00046         raise ConfigurationError(
00047             "At least one of 'class' or 'meta_type' is required.")
00048 
00049     if not meta_type:
00050         meta_type = class_.meta_type
00051 
00052     _mt_regs.append(meta_type)
00053 
00054     _context.action(
00055         discriminator = ('registerMultiPlugin', meta_type),
00056         callable = rMP,
00057         args = (meta_type,),
00058         )
00059 


Variable Documentation

Definition at line 40 of file zcml.py.