Changeset 6958 for main/waeup.sirp/trunk
- Timestamp:
- 26 Oct 2011, 15:49:21 (13 years ago)
- 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 4 4 from zope import schema 5 5 from waeup.sirp.interfaces import IWAeUPObject 6 from waeup.sirp.hostels.vocabularies import bed_letters, blocks 6 7 7 8 class IHostelsContainer(IWAeUPObject): … … 18 19 """Adds an INFO message to the log file 19 20 """ 20 21 #hostel_id = Attribute('Hostel Id')22 21 23 22 hostel_id = schema.TextLine( … … 45 44 46 45 nr_of_floors = schema.Int( 47 title = u'Number of Blocks',46 title = u'Number of Floors', 48 47 required = True, 49 48 default = 3, … … 51 50 52 51 rooms_per_floor = schema.Int( 53 title = u' Number of Blocks',52 title = u'Rooms per Floor', 54 53 required = True, 55 54 default = 20, … … 57 56 58 57 beds_per_room = schema.Int( 59 title = u' Number of Blocks',58 title = u'Beds per Room', 60 59 required = True, 61 60 default = 6, 62 61 ) 63 62 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.