hostels – Accommodation Section Components Package

(see also: Submodules)

This package contains everything regarding hostels.

class waeup.kofa.hostels.HostelsContainer[source]

This is a container for all kind of hostels.

__doc__ = 'This is a container for all kind of hostels.\n '
__implemented__ = <implementedBy waeup.kofa.hostels.container.HostelsContainer>
__init__()[source]
__module__ = 'waeup.kofa.hostels.container'
__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']
accommodation_session

Booking Session (computed attribute)

accommodation_states

Allowed States (computed attribute)

addHostel(hostel)[source]

Add a hostel.

clearAllHostels()[source]

Clear all hostels.

enddate

Hostel Allocation Closing Date (computed attribute)

expired
logger_filename = 'hostels.log'
logger_name = 'waeup.kofa.${sitename}.hostels'
releaseExpiredAllocations(n=7)[source]

Release bed if bed allocation has expired. Allocation expires after n days if maintenance fee has not been paid.

startdate

Hostel Allocation Start Date (computed attribute)

statistics
writeLogMessage(view, message)[source]
class waeup.kofa.hostels.Hostel[source]

This is a hostel.

__doc__ = 'This is a hostel.\n '
__implemented__ = <implementedBy waeup.kofa.hostels.hostel.Hostel>
__module__ = 'waeup.kofa.hostels.hostel'
__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']
addBed(bed)[source]

Add a bed.

bed_statistics
beds_for_all

Beds without category (computed attribute)

beds_for_final

Beds for Final Year Students (computed attribute)

beds_for_fresh

Beds for Fresh Students (computed attribute)

beds_for_pre

Beds for Pre-Study Students (computed attribute)

beds_for_returning

Beds for Returning Students (computed attribute)

blocks_for_female

Blocks for Female Students (computed attribute)

blocks_for_male

Blocks for Male Students (computed attribute)

clearHostel()[source]

Remove all beds

floors_per_block

Floors per Block (computed attribute)

hostel_id

Hostel Id (computed attribute)

hostel_name

Hostel Name (computed attribute)

maint_fee

Rent (computed attribute)

rooms_per_floor

Rooms per Floor (computed attribute)

sort_id

Sort Id (computed attribute)

special_handling

Special Handling (computed attribute)

updateBeds()[source]

Fill hostel with beds or update beds.

writeLogMessage(view, message)[source]
class waeup.kofa.hostels.Bed[source]

This is a bed.

__doc__ = 'This is a bed.\n '
__implemented__ = <implementedBy waeup.kofa.hostels.hostel.Bed>
__module__ = 'waeup.kofa.hostels.hostel'
__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
bed_id

Bed Id (computed attribute)

bed_number

Bed Number (computed attribute)

bed_type

Bed Type (computed attribute)

block
bookBed(student_id)[source]
bt
coordinates

Determine the coordinates from the bed_id.

hall
owner

Owner (Student) (computed attribute)

releaseBed()[source]

Release bed.

releaseBedIfMaintenanceNotPaid(n=7)[source]

Release bed if maintenance fee has not been paid on time. Reserve bed so that it cannot be automatically booked by someone else.

room
sex
special_handling
switchReservation()[source]

Reserves or unreserve bed respectively.

writeLogMessage(view, message)[source]