Changeset 828 for WAeUP_SRP/trunk/skins/waeup_accommodation
- Timestamp:
- 10 Nov 2006, 15:26:31 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_accommodation/formatBed.py
r821 r828 17 17 return '' 18 18 hall,block,room,letter = bed.split('_') 19 hall_title = context.restrictedTraverse("%s/campus/getHallTitle" % 20 (context.portal_url.getPortalPath()))(hall) 19 info = context.waeup_tool.getAccommodationInfo(bed) 20 if info: 21 hall_title = info['hall_title'] 22 else: 23 hall_title = "" 21 24 return " %s / Block %s / Room %s / Bed %s" % (hall_title,block,room,letter)
Note: See TracChangeset for help on using the changeset viewer.