Last change
on this file since 683 was
669,
checked in by Henrik Bettermann, 18 years ago
|
hostel application slip beautified
|
File size:
449 bytes
|
Line | |
---|
1 | ##parameters=bed=None,mode=None,datastructure=None |
---|
2 | # $Id: apply_admission.py 543 2006-09-24 07:44:32Z henrik $ |
---|
3 | """ |
---|
4 | format the bed for readability |
---|
5 | """ |
---|
6 | |
---|
7 | if datastructure is not None: |
---|
8 | bed = datastructure.get('bed') |
---|
9 | hall,block,room,letter = bed.split('_') |
---|
10 | res = context.portal_catalog(portal_type="AccoHall",id=hall) |
---|
11 | if res and len(res) == 1: |
---|
12 | hall_title = res[0].Title |
---|
13 | return " %s / Block %s / Room %s / Bed %s" % (hall_title,block,room,letter) |
---|
Note: See
TracBrowser for help on using the repository browser.