Changeset 1536 for WAeUP_SRP/trunk


Ignore:
Timestamp:
10 Mar 2007, 18:52:25 (18 years ago)
Author:
Henrik Bettermann
Message:

ticket 98

Location:
WAeUP_SRP/trunk/skins
Files:
2 edited

Legend:

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

    r1460 r1536  
    4444    acco_cat.modifyRecord(bed=allocated_bed.bed,student='')
    4545    acco_doc = context.getContent()
    46     acco_doc.edit(mapping={'bed':"-- cancelled by %s --" % member})
     46    acco_doc.edit(mapping={'bed':"-- cancelled by section officer --"})
     47    logger.info('"%s", "released bed of", "%s"' % (member_id,student_id))
    4748    redirect("%s" % (context.absolute_url()))
    4849
  • WAeUP_SRP/trunk/skins/waeup_student/getRetStudentStatistics.py

    r1530 r1536  
    4242    dep['id'] = fid
    4343    fquery = Eq('faculty',fid)
    44     fac_res = aq_students(fquery)
    45     fac_ids = [r.id for r in fac_res]
    46     total = float(len(fac_res))
     44    stud_res = aq_students(fquery)
     45    stud_ids = [r.id for r in stud_res]
     46    total = float(len(stud_res))
    4747
    4848    if total == 0:
    4949        continue
    5050
    51     ret = len([s for s in fac_ids if s in ret_ids])
     51    ret = len([s for s in stud_ids if s in ret_ids])
    5252    dep['returned'] = ret
    5353    sum += ret
Note: See TracChangeset for help on using the changeset viewer.