##parameters=bed # $Id: apply_admission.py 543 2006-09-24 07:44:32Z henrik $ """ format the bed for readability """ hall,block,room,letter = bed.split('_') res = context.portal_catalog(portal_type="AccoHall",id=hall) if res and len(res) == 1: hall_title = res[0].Title return "Bed %s in Room %s in Block %s in Hall %s" % (letter,room,block,hall_title)