university.department - Department Components

University departments.

class waeup.kofa.university.department.Department(title=u'Unnamed Department', title_prefix=u'department', code=u'NA', officer_1=None, officer_2=None, officer_3=None, officer_4=None, **kw)[source]

Bases: grokcore.content.components.Container

A university department.

__doc__ = 'A university department.\n '
__implemented__ = <implementedBy waeup.kofa.university.department.Department>
__init__(title=u'Unnamed Department', title_prefix=u'department', code=u'NA', officer_1=None, officer_2=None, officer_3=None, officer_4=None, **kw)[source]
__module__ = 'waeup.kofa.university.department'
__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.ApplicationsManager', 'waeup.local.DepartmentOfficer', 'waeup.local.DepartmentManager', 'waeup.local.ClearanceOfficer', 'waeup.local.UGClearanceOfficer', 'waeup.local.PGClearanceOfficer', 'waeup.local.ReportsOfficer', '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.LocalStudentsManager', 'waeup.local.Lecturer']
longtitle
moveDepartment(facname, depname)[source]

Move department to new department named depname in faculty named facname.

traverse(name)[source]

Deliver appropriate containers, if someone wants to go to courses, certificates or exports.

class waeup.kofa.university.department.DepartmentFactory[source]

Bases: grokcore.component.components.GlobalUtility

A factory for department containers.

__call__(*args, **kw)[source]
__doc__ = 'A factory for department containers.\n '
__implemented__ = <implementedBy waeup.kofa.university.department.DepartmentFactory>
__module__ = 'waeup.kofa.university.department'
__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 department instances.'
getInterfaces()[source]

Get interfaces of objects provided by this factory.

title = (u'Create a new department.',)
class waeup.kofa.university.department.DepartmentsPlugin[source]

Bases: grokcore.component.components.GlobalUtility

A plugin that updates departments.

__doc__ = 'A plugin that updates departments.\n '
__implemented__ = <implementedBy waeup.kofa.university.department.DepartmentsPlugin>
__module__ = 'waeup.kofa.university.department'
__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.department.VirtualDepartmentExportJobContainer[source]

Bases: waeup.kofa.utils.batching.VirtualExportJobContainer

A virtual export job container for departments.

__doc__ = 'A virtual export job container for departments.\n '
__module__ = 'waeup.kofa.university.department'