Ignore:
Timestamp:
27 Oct 2006, 11:34:06 (18 years ago)
Author:
joachim
Message:

pume import addopted
searchStudents-results now sorted by student_id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/searchStudents.py

    r755 r765  
    1717except:
    1818    evalAdvancedQuery = None
     19
     20def cmp_id(a,b):
     21    if a.getId() > b.getId():
     22        return 1
     23    return -1
    1924
    2025request = context.REQUEST
     
    147152    items.append(a)
    148153students = []
     154items.sort(cmp_id)
    149155if items:
    150156    for item in items:
Note: See TracChangeset for help on using the changeset viewer.