source: WAeUP_SRP/trunk/skins/waeup_accommodation/formatBed.py @ 654

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

some improvements to accommodation views

File size: 357 bytes
Line 
1##parameters=bed
2# $Id: apply_admission.py 543 2006-09-24 07:44:32Z henrik $
3"""
4format the bed for readability
5"""
6
7hall,block,room,letter = bed.split('_')
8res = context.portal_catalog(portal_type="AccoHall",id=hall)
9if res and len(res) == 1:
10    hall_title = res[0].Title
11return "Bed %s in Room %s in Block %s in Hall %s" % (letter,room,block,hall_title)
Note: See TracBrowser for help on using the repository browser.