Changeset 6958 for main


Ignore:
Timestamp:
26 Oct 2011, 15:49:21 (13 years ago)
Author:
Henrik Bettermann
Message:

Add more hostel configuration fields.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/hostels
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/interfaces.py

    r6956 r6958  
    44from zope import schema
    55from waeup.sirp.interfaces import IWAeUPObject
     6from waeup.sirp.hostels.vocabularies import bed_letters, blocks
    67
    78class IHostelsContainer(IWAeUPObject):
     
    1819        """Adds an INFO message to the log file
    1920        """
    20 
    21     #hostel_id = Attribute('Hostel Id')
    2221
    2322    hostel_id = schema.TextLine(
     
    4544
    4645    nr_of_floors = schema.Int(
    47         title = u'Number of Blocks',
     46        title = u'Number of Floors',
    4847        required = True,
    4948        default = 3,
     
    5150
    5251    rooms_per_floor = schema.Int(
    53         title = u'Number of Blocks',
     52        title = u'Rooms per Floor',
    5453        required = True,
    5554        default = 20,
     
    5756
    5857    beds_per_room = schema.Int(
    59         title = u'Number of Blocks',
     58        title = u'Beds per Room',
    6059        required = True,
    6160        default = 6,
    6261        )
    6362
     63    blocks_for_female = schema.List(
     64        title = u'Blocks for Female Students',
     65        value_type = schema.Choice(
     66            vocabulary = blocks
     67            ),
     68        )
     69
     70    beds_for_fresh = schema.List(
     71        title = u'Beds for Fresh Students',
     72        value_type = schema.Choice(
     73            vocabulary = bed_letters
     74            ),
     75        )
     76
     77    beds_for_final = schema.List(
     78        title = u'Beds for Final Year Students',
     79        value_type = schema.Choice(
     80            vocabulary = bed_letters
     81            ),
     82        )
Note: See TracChangeset for help on using the changeset viewer.