source: WAeUP_SRP/trunk/skins/waeup_accommodation/getAccoHallBeds.py @ 16202

Last change on this file since 16202 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
RevLine 
[1447]1##parameters=key=None,doc=None
[1393]2# $Id: getAccoHallBeds.py 1447 2007-02-20 13:41:26Z joachim $
3"""
4Return the bedletters as an vocabulary
5
6"""
[1447]7if doc is None:
8    doc = context.getContent()
[1393]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.