Changeset 2416 for WAeUP_SRP/base


Ignore:
Timestamp:
22 Oct 2007, 18:02:54 (17 years ago)
Author:
joachim
Message:

mixed search for student_id and matric_no

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/remove_students.py

    r2402 r2416  
    6464
    6565if student_ids:
    66     brains = aq_students(In('id',student_ids))
     66    brains = aq_students(In('id',student_ids) | In('matric_no', student_ids))
     67    #matno_brains = aq_students(In('matric_no', student_ids))
    6768    brains_dict = {}
     69    #id_brains_dict = {}
     70    #matno_brains_dict = {}
    6871    if brains:
    6972        for b in brains:
    70             brains_dict[b.id] = b
     73            if b.id in student_ids:
     74                brains_dict[b.id] = b
     75            elif b.matric_no in student_ids:
     76                brains_dict[b.matric_no] = b
     77    #set_trace()
    7178    for student_id in student_ids:
    7279        student = {}
Note: See TracChangeset for help on using the changeset viewer.