Ignore:
Timestamp:
10 Nov 2006, 15:26:31 (18 years ago)
Author:
joachim
Message:

reenabled waeup_tool,
reserve accommodation fixed

File:
1 edited

Legend:

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

    r821 r828  
    1717    return ''
    1818hall,block,room,letter = bed.split('_')
    19 hall_title = context.restrictedTraverse("%s/campus/getHallTitle" %
    20                          (context.portal_url.getPortalPath()))(hall)
     19info = context.waeup_tool.getAccommodationInfo(bed)
     20if info:
     21    hall_title = info['hall_title']
     22else:
     23    hall_title = ""
    2124return " %s / Block %s / Room %s / Bed %s" % (hall_title,block,room,letter)
Note: See TracChangeset for help on using the changeset viewer.