Changeset 407 for WAeUP_SRP/trunk/Accommodation.py
- Timestamp:
- 23 Aug 2006, 05:13:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Accommodation.py
r404 r407 32 32 for hall in halls: 33 33 h = hall.getContent() 34 reserved = [int(r) for r in h.reserved_rooms.split()] 34 35 for block in range(1,int(h.nr_of_blocks)): 35 36 for floor in range(1,int(h.nr_of_floors)): … … 37 38 for bed in 'ABCDEFGH'[:int(h.beds_per_room)]: 38 39 room_nr = floor*100 + room 40 if room_nr in reserved: 41 print room_nr 42 continue 43 bt = 'xx' 44 if bed in h.beds_for_fresh: 45 bt = 'fr' 46 elif bed in h.beds_for_returning: 47 bt = 're' 48 elif bed in h.beds_for_final: 49 bt = 'fi' 50 print bt 39 51 freelist.addRecord(bed = '%s_%d_%s' % (h.getId(),room_nr,bed), 40 bed_type = "test") 52 bed_type = bt) 53 return self.accommodation.academics_contents() 41 54 42 55 ###)
Note: See TracChangeset for help on using the changeset viewer.