applicants.root - Root for Applicants Containers

The root for applicants.

class waeup.kofa.applicants.root.ApplicantsPlugin[source]

Bases: grokcore.component.components.GlobalUtility

A KofaPlugin that creates an applicants root in portal.

This plugin could be called by a typical waeup.kofa.app.Universtiy instance on creation time. The update() method normally can also be triggered manually over the main site configuration.

Implements waeup.kofa.interfaces.IKofaPluggable

__doc__ = 'A KofaPlugin that creates an applicants root in portal.\n\n This plugin could be called by a typical\n `waeup.kofa.app.Universtiy` instance on creation time. The\n :meth:`update` method normally can also be triggered manually over\n the main site configuration.\n\n Implements :class:`waeup.kofa.interfaces.IKofaPluggable`\n '
__implemented__ = <implementedBy waeup.kofa.applicants.root.ApplicantsPlugin>
__module__ = 'waeup.kofa.applicants.root'
__provides__

Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.

For example:

>>> from zope.interface import Interface
>>> class IFooFactory(Interface):
...     pass
>>> class IFoo(Interface):
...     pass
>>> class C(object):
...     implements(IFoo)
...     classProvides(IFooFactory)
>>> [i.getName() for i in C.__provides__]
['IFooFactory']
>>> [i.getName() for i in C().__provides__]
['IFoo']
log_prefix = 'ApplicantsPlugin'
setup(site, name, logger)[source]

Create a new ApplicantsRoot instance in site.

update(site, name, logger)[source]

Update site wide applicants root.

If the site already contains a suitable applicants root, leave it that way. If not create one and delete the old one if appropriate.

Update applicants catalog.

Remove deprecated applicant ids from global role map.

class waeup.kofa.applicants.root.ApplicantsRoot[source]

Bases: grokcore.content.components.Container, waeup.kofa.utils.logger.Logger

The root of applicants-related components. It contains only containers for applicants.

__doc__ = 'The root of applicants-related components. It contains only\n containers for applicants.\n '
__implemented__ = <implementedBy waeup.kofa.applicants.root.ApplicantsRoot>
__module__ = 'waeup.kofa.applicants.root'
__provides__

Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.

For example:

>>> from zope.interface import Interface
>>> class IFooFactory(Interface):
...     pass
>>> class IFoo(Interface):
...     pass
>>> class C(object):
...     implements(IFoo)
...     classProvides(IFooFactory)
>>> [i.getName() for i in C.__provides__]
['IFooFactory']
>>> [i.getName() for i in C().__provides__]
['IFoo']
description

Human readable description in HTML format (computed attribute)

description_dict = {}
local_roles = []
logger_filename = 'applicants.log'
logger_name = 'waeup.kofa.${sitename}.applicants'