app – University Root (Site) Module

class waeup.kofa.app.ObjectUpgradeEvent(object)[source]

Bases: zope.component.interfaces.ObjectEvent

An event fired, when datacenter storage moves.

__doc__ = 'An event fired, when datacenter storage moves.\n '
__implemented__ = <implementedBy waeup.kofa.app.ObjectUpgradeEvent>
__module__ = 'waeup.kofa.app'
__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']
class waeup.kofa.app.University(*args, **kw)[source]

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

A university.

__doc__ = 'A university.\n '
__implemented__ = <implementedBy waeup.kofa.app.University>
__init__(*args, **kw)[source]
__module__ = 'waeup.kofa.app'
__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']
_createPlugins()[source]

Create instances of all plugins defined somewhere.

setup()[source]

Setup some hard-wired components.

Create local datacenter, containers for users, students and the like.

traverse(name)[source]
updatePlugins()[source]

Lookup an arbitrarily selected set of plugins and call their update() method to upgrade Kofa’s database since software version 1.4 (2016-01-14).

XXX: This method does not run all plugins registered.

XXX: Tests for this method were disabled.

waeup.kofa.app.handle_university_added(app, event)[source]

If a university is added, a message is logged.