Changeset 1206 for WAeUP_SRP/trunk


Ignore:
Timestamp:
5 Jan 2007, 18:24:56 (18 years ago)
Author:
joachim
Message:

fix

File:
1 edited

Legend:

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

    r1164 r1206  
    5656        acco_doc = info['acco_doc']
    5757        acco_doc.edit(mapping=d)
    58         redirect("%s/%s/%s" % (students.absolute_url(),student,info['acco_id']))
     58        return redirect("%s/%s/%s" % (students.absolute_url(),student,info['acco_id']))
    5959    logger.info('"%s", "new bed allocation failed","%s"' % (student_id,code))
    6060    redirect("%s/%s/%s" % (students.absolute_url(),student,info['acco_id']))
     
    6666for r in records:
    6767    info = context.getAccommodationInfo(r.student)
    68     if r.bed_type == info['student_status']:
     68    sbt = info.get('student_status',None)
     69    if sbt is None:
     70        continue
     71    elif r.bed_type == sbt:
    6972        list.append("Student %s bed_type %s ok" % (r.student,r.bed_type))
    7073        continue
Note: See TracChangeset for help on using the changeset viewer.