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>¶
-
__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
¶
-
maint_payment_made
¶
-
relocateStudent
()[source]¶ Relocate student if student parameters have changed or the bed_type of the bed has changed.
-
student
¶
-
-
class
waeup.kofa.students.accommodation.
BedTicketFactory
[source]¶ Bases:
grokcore.component.components.GlobalUtility
A factory for bed tickets.
-
__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.'¶
-
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>¶
-
__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']
-
desired_hostel
¶ Desired Hostel (computed attribute)
-
student
¶
-