students.accommodation - Student Accommodation Components

Student accommodation components.

class waeup.kofa.students.accommodation.BedTicket[source]

Bases: grokcore.content.components.Model

This is a bed ticket which shows that the student has booked a bed.

__doc__ = 'This is a bed ticket which shows that the student has booked a bed.\n '
__implemented__ = <implementedBy waeup.kofa.students.accommodation.BedTicket>
__init__()[source]
__module__ = 'waeup.kofa.students.accommodation'
__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']
bed_coordinates

(computed attribute)

bed_type

Requested Bed Type (computed attribute)

booking_code

Booking Activation Code (computed attribute)

booking_date

Booking Date (computed attribute)

booking_session

Session (computed attribute)

display_coordinates
getSessionString()[source]
maint_payment_made
relocateStudent()[source]

Relocate student if student parameters have changed or the bed_type of the bed has changed.

student
writeLogMessage(view, message)[source]
class waeup.kofa.students.accommodation.BedTicketFactory[source]

Bases: grokcore.component.components.GlobalUtility

A factory for bed tickets.

__call__(*args, **kw)[source]
__doc__ = 'A factory for bed tickets.\n '
__implemented__ = <implementedBy waeup.kofa.students.accommodation.BedTicketFactory>
__module__ = 'waeup.kofa.students.accommodation'
__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 bed ticket instances.'
getInterfaces()[source]
title = (u'Create a new bed ticket.',)
class waeup.kofa.students.accommodation.StudentAccommodation[source]

Bases: grokcore.content.components.Container

This is a container for bed tickets.

__doc__ = 'This is a container for bed tickets.\n '
__implemented__ = <implementedBy waeup.kofa.students.accommodation.StudentAccommodation>
__init__()[source]
__module__ = 'waeup.kofa.students.accommodation'
__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']
addBedTicket(bedticket)[source]

Add a bed ticket object.

desired_hostel

Desired Hostel (computed attribute)

student
writeLogMessage(view, message)[source]