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

pume import addopted
searchStudents-results now sorted by student_id

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 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:
  • WAeUP_SRP/trunk/skins/waeup_student/student_index.py

    r742 r765  
    3434    elif state == 'application_pin_entered':
    3535        return redirect("%s/passport_entry_view" % student.absolute_url())
     36    elif context.portal_type == 'StudentStudyLevel':
     37        return context.study_level_student_view()
    3638    return redirect("%s/student_view" % student.absolute_url())
    3739
Note: See TracChangeset for help on using the changeset viewer.