Changeset 821 for WAeUP_SRP/trunk/skins/waeup_accommodation
- Timestamp:
- 9 Nov 2006, 21:37:29 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_accommodation/formatBed.py
r805 r821 1 ## Script (Python) "students_indext" 2 ##bind container=container 3 ##bind context=context 4 ##bind namespace= 5 ##bind script=script 6 ##bind subpath=traverse_subpath 1 7 ##parameters=bed=None,mode=None,datastructure=None 8 ##title= 2 9 # $Id$ 3 10 """ … … 10 17 return '' 11 18 hall,block,room,letter = bed.split('_') 12 res = context.portal_catalog(portal_type="AccoHall",id=hall) 13 if res and len(res) == 1: 14 hall_title = res[0].Title 19 hall_title = context.restrictedTraverse("%s/campus/getHallTitle" % 20 (context.portal_url.getPortalPath()))(hall) 15 21 return " %s / Block %s / Room %s / Bed %s" % (hall_title,block,room,letter)
Note: See TracChangeset for help on using the changeset viewer.