Ignore:
Timestamp:
24 Oct 2012, 05:16:32 (12 years ago)
Author:
Henrik Bettermann
Message:

Make special handling of beds more easily customizable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/vocabularies.py

    r9373 r9400  
    2424from waeup.kofa.interfaces import SimpleKofaVocabulary
    2525from waeup.kofa.interfaces import MessageFactory as _
     26from waeup.kofa.university.vocabularies import ContextualDictSourceFactoryBase
    2627
    2728NOT_OCCUPIED = u'not occupied'
     
    5354    def getTitle(self, context, value):
    5455        return "%s - %s" % (value, self.acco_students(context)[value])
     56
     57class SpecialHandlingSource(ContextualDictSourceFactoryBase):
     58    """A application category source delivers all special handling categories
     59    provided for accommodation booking.
     60    """
     61    #: name of dict to deliver from kofa utils.
     62    DICT_NAME = 'SPECIAL_HANDLING_DICT'
    5563
    5664bed_letters = SimpleKofaVocabulary(
     
    8795    (_('Block Q'),'Q'),
    8896    )
    89 
    90 special_handling = SimpleKofaVocabulary(
    91     (_('Regular Hostel'),'regular'),
    92     (_('Blocked Hostel'),'blocked'),
    93     (_('Postgraduate Hostel'),'pg'),
    94     )
Note: See TracChangeset for help on using the changeset viewer.