Index: WAeUP_SRP/trunk/skins/waeup_accommodation/formatBed.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_accommodation/formatBed.py	(revision 805)
+++ WAeUP_SRP/trunk/skins/waeup_accommodation/formatBed.py	(revision 821)
@@ -1,3 +1,10 @@
+## Script (Python) "students_indext"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
 ##parameters=bed=None,mode=None,datastructure=None
+##title=
 # $Id$
 """
@@ -10,6 +17,5 @@
     return ''
 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
+hall_title = context.restrictedTraverse("%s/campus/getHallTitle" % 
+                         (context.portal_url.getPortalPath()))(hall)
 return " %s / Block %s / Room %s / Bed %s" % (hall_title,block,room,letter)
