hostels.container - Hostels Container Components

Containers which contain hostels.

class waeup.kofa.hostels.container.HostelsContainer[source]

Bases: grokcore.content.components.Container, waeup.kofa.utils.logger.Logger

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]