university.certificate - Certificate Components

Kofa certificates and certificate courses

class waeup.kofa.university.certificate.Certificate(code=u'NA', title=u'Unnamed Certificate', study_mode=None, start_level=None, end_level=None, application_category=None, school_fee_1=None, school_fee_2=None, school_fee_3=None, school_fee_4=None, ratio=None, degree=None, custom_textline_1=None, custom_textline_2=None, custom_float_1=None, custom_float_2=None)[source]

Bases: grokcore.content.components.Container

A certificate.

__doc__ = 'A certificate.\n '
__implemented__ = <implementedBy waeup.kofa.university.certificate.Certificate>
__init__(code=u'NA', title=u'Unnamed Certificate', study_mode=None, start_level=None, end_level=None, application_category=None, school_fee_1=None, school_fee_2=None, school_fee_3=None, school_fee_4=None, ratio=None, degree=None, custom_textline_1=None, custom_textline_2=None, custom_float_1=None, custom_float_2=None)[source]
__module__ = 'waeup.kofa.university.certificate'
__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']
addCertCourse(course, level=100, mandatory=True, course_category=None)[source]

Add a certificate course.

delCertCourses(code, level=None)[source]

Delete certificate courses.

We might have more than one certificate course for a course. If level is not provided all certificate courses referring to the same course will be deleted.

local_roles = ['waeup.local.CourseAdviser100', 'waeup.local.CourseAdviser200', 'waeup.local.CourseAdviser300', 'waeup.local.CourseAdviser400', 'waeup.local.CourseAdviser500', 'waeup.local.CourseAdviser600', 'waeup.local.CourseAdviser700', 'waeup.local.CourseAdviser800', 'waeup.local.DepartmentOfficer', 'waeup.local.ClearanceOfficer']
longtitle
moveCertificate(facname, depname, newcode)[source]
traverse(name)[source]

Deliver appropriate containers.

class waeup.kofa.university.certificate.CertificateCourse(course=None, level=100, mandatory=True, course_category=None)[source]

Bases: grokcore.content.components.Model

__doc__ = None
__implemented__ = <implementedBy waeup.kofa.university.certificate.CertificateCourse>
__init__(course=None, level=100, mandatory=True, course_category=None)[source]
__module__ = 'waeup.kofa.university.certificate'
__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']
getCourseCode()[source]

Get code of a course.

longtitle
class waeup.kofa.university.certificate.CertificateCourseFactory[source]

Bases: grokcore.component.components.GlobalUtility

A factory for certificate courses.

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

Bases: grokcore.component.components.GlobalUtility

A plugin that updates certificate courses.

__doc__ = 'A plugin that updates certificate courses.\n '
__implemented__ = <implementedBy waeup.kofa.university.certificate.CertificateCoursesPlugin>
__module__ = 'waeup.kofa.university.certificate'
__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.certificate.CertificateFactory[source]

Bases: grokcore.component.components.GlobalUtility

A factory for certificates.

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

Bases: grokcore.component.components.GlobalUtility

A plugin that updates certificates.

__doc__ = 'A plugin that updates certificates.\n '
__implemented__ = <implementedBy waeup.kofa.university.certificate.CertificatesPlugin>
__module__ = 'waeup.kofa.university.certificate'
__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.certificate.VirtualCertificateExportJobContainer[source]

Bases: waeup.kofa.utils.batching.VirtualExportJobContainer

A virtual export job container for certificates.

__doc__ = 'A virtual export job container for certificates.\n '
__module__ = 'waeup.kofa.university.certificate'
waeup.kofa.university.certificate.handle_certificate_removed(certificate, event)[source]

If a certificate is deleted, we make sure that also referrers to student studycourse objects are removed.