hostels.interfaces - Hostel Related Interfaces

interface waeup.kofa.hostels.interfaces.IBed[source]

Extends: waeup.kofa.interfaces.IKofaObject

Representation of a bed.

bed_id

Bed Id

switchBed(switch_type)

Switches reservation or blockade.

room

Room number, for exporter only

special_handling

Special handling code, for exporter only

bed_type

Bed Type

bed_number

Bed Number

coordinates

Coordinates tuple derived from bed_id

hall

Hall id, for exporter only

bt

Last part of bed type, for exporter only

bookBed(student_id)

Book a bed for a student.

writeLogMessage(view, message)

Add an INFO message to hostels.log.

bed

Bed letter, for exporter only

owner

Owner (Student)

Enter valid student id.

sex

Sex, for exporter only

block

Block letter, for exporter only

releaseBedIfMaintenanceNotPaid()

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

interface waeup.kofa.hostels.interfaces.IHostel[source]

Extends: waeup.kofa.interfaces.IKofaObject

Representation of a hostel.

hostel_id

Hostel Id

beds_for_returning

Beds for Returning Students

hostel_name

Hostel Name

clearHostel()

Remove all beds.

writeLogMessage(view, message)

Add an INFO message to hostels.log.

rooms_per_floor

Rooms per Floor

blocks_for_female

Blocks for Female Students

updateBeds()

Fill hostel with beds or update beds.

beds_for_all

Beds without category

beds_for_pre

Beds for Pre-Study Students

special_handling

Special Handling

beds_for_fresh

Beds for Fresh Students

bed_statistics

Number of booked and total beds

sort_id

Sort Id

floors_per_block

Floors per Block

blocks_for_male

Blocks for Male Students

maint_fee

Rent

beds_for_final

Beds for Final Year Students

interface waeup.kofa.hostels.interfaces.IHostelsContainer[source]

Extends: waeup.kofa.interfaces.IKofaObject

A container for hostel objects.

accommodation_session

Booking Session

startdate

Hostel Allocation Start Date

Example: 2011-12-01 18:30:00+01:00

statistics

Bed category statistics

enddate

Hostel Allocation Closing Date

Example: 2011-12-31 23:59:59+01:00

writeLogMessage(view, message)

Add an INFO message to hostels.log.

accommodation_states

Allowed States

allocation_expiration

Allocation Expiration Time (days)

Number of days after which allocation is being annulled

clearAllHostels()

Clear all hostels.

addHostel(hostel)

Add a hostel.

releaseExpiredAllocations(n)

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

expired

True if current datetime is in application period.

interface waeup.kofa.hostels.interfaces.IHostelsUtils[source]

A collection of methods which are subject to customization.

getBedStatistics()

Return bed statistics.

exception waeup.kofa.hostels.interfaces.NotASortId[source]

Bases: zope.schema._bootstrapinterfaces.ValidationError

Invalid sort_id

__doc__ = u'Invalid sort_id'
__module__ = 'waeup.kofa.hostels.interfaces'
waeup.kofa.hostels.interfaces.validate_sort_id(value)[source]