source: WAeUP_SRP/branches/joachim-azax-branch/skins/waeup_accommodation/getAccoHallBeds.py @ 16250

Last change on this file since 16250 was 1447, checked in by joachim, 18 years ago

new function fixReservedBeds:
walks through all reserved beds
if the bed is allocated to a student:

if the student has an accommodation object:

if not the same as the reserved bed:

deallocate bed.


  • Property svn:keywords set to Id
File size: 219 bytes
Line 
1##parameters=key=None,doc=None
2# $Id: getAccoHallBeds.py 1447 2007-02-20 13:41:26Z joachim $
3"""
4Return the bedletters as an vocabulary
5
6"""
7if doc is None:
8    doc = context.getContent()
9if key is None:
10    return [(l,l) for l in 'ABCDEFGH'[:doc.beds_per_room]]
11return key
Note: See TracBrowser for help on using the repository browser.