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

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

added layout_application_view_info to display selected Info for a student used in accommodation_slip

File size: 456 bytes
RevLine 
[667]1##parameters=bed=None,mode=None,datastructure=None
[642]2# $Id: apply_admission.py 543 2006-09-24 07:44:32Z henrik $
3"""
4format the bed for readability
5"""
6
[667]7if datastructure is not None:
8    bed = datastructure.get('bed')
[642]9hall,block,room,letter = bed.split('_')
[654]10res = context.portal_catalog(portal_type="AccoHall",id=hall)
11if res and len(res) == 1:
12    hall_title = res[0].Title
13return "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.