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

Last change on this file since 1403 was 1393, checked in by joachim, 18 years ago

new method book_reserved_bed to book a reserved bed for a student

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