Last change
on this file since 17389 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 | """ |
---|
4 | Return the bedletters as an vocabulary |
---|
5 | |
---|
6 | """ |
---|
7 | if doc is None: |
---|
8 | doc = context.getContent() |
---|
9 | if key is None: |
---|
10 | return [(l,l) for l in 'ABCDEFGH'[:doc.beds_per_room]] |
---|
11 | return key |
---|
Note: See
TracBrowser for help on using the repository browser.