Ignore:
Timestamp:
11 Oct 2006, 08:51:55 (18 years ago)
Author:
joachim
Message:

some improvements to accommodation views

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_accommodation/formatBed.py

    r642 r654  
    66
    77hall,block,room,letter = bed.split('_')
    8 return "Bed %s in Room %s in Block %s in Hall %s" % (letter,room,block,hall)
     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 TracChangeset for help on using the changeset viewer.