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