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.

Location:
WAeUP_SRP/base/skins/waeup_accommodation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_accommodation/acco_folder_view.pt

    r2890 r3043  
    2222        <tr>
    2323          <th width="200px">Hall Name</th>
    24           <th>New Beds Generated</th>
     24          <th>Beds Generated</th>
     25          <th>Beds Modyfied</th>
    2526        </tr>
    2627        <tr tal:repeat="hall beds_generated">
    2728          <td tal:content="hall/name"></td>
    2829          <td tal:content="hall/count"></td>
     30          <td tal:content="hall/modyfied_count"></td>
    2931        </tr>
    3032      </table>
  • 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.