Ignore:
Timestamp:
15 Feb 2008, 08:20:49 (17 years ago)
Author:
Henrik Bettermann
Message:

list all students with wrong bed but do not change bed

File:
1 edited

Legend:

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

    r3169 r3170  
    8484list = []
    8585to_modify = []
    86 for r in records:
     86for r in records[1:100]:
    8787    info = context.getAccommodationInfo(r.student)
    8888    sbt = info.get('student_status',None)
     
    9292        #list.append("Student %s bed_type %s ok" % (r.student,r.bed_type))
    9393        continue
    94     list.append("Student %s bed_type %s != %s" % (r.student,
     94    message = "Student %s bed_type %s != %s" % (r.student,
    9595                                                  r.bed_type,
    96                                                   info['student_status']))
     96                                                  info['student_status'])
     97    list.append(message)
    9798    #to_modify.append((r.bed,r.student,info['student_status'],info['acco_doc']))
    98    
     99    logger.info(message)
     100
    99101return "\r".join(list)
    100    
     102
    101103for former_bed, student, status,acco_doc in to_modify:
    102104    beds.modifyRecord(bed=former_bed,student='')
Note: See TracChangeset for help on using the changeset viewer.