Ignore:
Timestamp:
24 Jan 2008, 18:02:36 (17 years ago)
Author:
joachim
Message:

update bedlist now modyfies beds, if they have been modyfied. Change beds
now sets the previous bed student to not_occupied.

File:
1 edited

Legend:

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

    r2454 r3043  
    4444        return redirect("%s/%s/%s" % (students.absolute_url(),student,info['acco_id']))
    4545    logger.info('Bed status %s of %s has changed to %s' % (allocated_bed.bed_type,student_id,status))
    46     beds.modifyRecord(bed=allocated_bed.bed,student='')
     46    beds.modifyRecord(bed=allocated_bed.bed,student=beds.not_occupied)
    4747    logger.info('Bed %s released' % (allocated_bed.bed))
    4848    code,bed = beds.searchAndReserveBed(student_id,status)
Note: See TracChangeset for help on using the changeset viewer.