Ignore:
Timestamp:
9 Nov 2006, 21:37:29 (18 years ago)
Author:
joachim
Message:

make hostel allocation work

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
    17##parameters=bed=None,mode=None,datastructure=None
     8##title=
    29# $Id$
    310"""
     
    1017    return ''
    1118hall,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
     19hall_title = context.restrictedTraverse("%s/campus/getHallTitle" %
     20                         (context.portal_url.getPortalPath()))(hall)
    1521return " %s / Block %s / Room %s / Bed %s" % (hall_title,block,room,letter)
Note: See TracChangeset for help on using the changeset viewer.