university.course - Course Components

Courses.

class waeup.kofa.university.course.Course(title=u'Unnamed Course', code=u'NA', credits=0, passmark=40, semester=1, former_course=False, **kw)[source]

Bases: grokcore.content.components.Model

A university course.

__doc__ = 'A university course.\n '
__implemented__ = <implementedBy waeup.kofa.university.course.Course>
__init__(title=u'Unnamed Course', code=u'NA', credits=0, passmark=40, semester=1, former_course=False, **kw)[source]
__module__ = 'waeup.kofa.university.course'
__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']
local_roles = ['waeup.local.Lecturer']
longtitle
traverse(name)[source]

Deliver appropriate containers.

class waeup.kofa.university.course.CourseFactory[source]

Bases: grokcore.component.components.GlobalUtility

A factory for courses.

__call__(*args, **kw)[source]
__doc__ = 'A factory for courses.\n '
__implemented__ = <implementedBy waeup.kofa.university.course.CourseFactory>
__module__ = 'waeup.kofa.university.course'
__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 = u'This factory instantiates new course instances.'
getInterfaces()[source]
title = (u'Create a new course.',)
class waeup.kofa.university.course.CoursesPlugin[source]

Bases: grokcore.component.components.GlobalUtility

A plugin that updates courses.

__doc__ = 'A plugin that updates courses.\n '
__implemented__ = <implementedBy waeup.kofa.university.course.CoursesPlugin>
__module__ = 'waeup.kofa.university.course'
__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']
deprecated_attributes = []
setup(site, name, logger)[source]
update(site, name, logger)[source]
class waeup.kofa.university.course.VirtualCourseExportJobContainer[source]

Bases: waeup.kofa.utils.batching.VirtualExportJobContainer

A virtual export job container for courses.

__doc__ = 'A virtual export job container for courses.\n '
__module__ = 'waeup.kofa.university.course'
waeup.kofa.university.course.handle_course_removed(course, event)[source]

If a course is deleted, we make sure that also referrers in a certificatescontainer are removed.

waeup.kofa.university.course.handle_set_former_course(course, event)[source]

If a former course attribute is set, we make sure that referrers in a certificatescontainer are removed.