Ignore:
Timestamp:
11 Oct 2006, 23:22:16 (18 years ago)
Author:
Henrik Bettermann
Message:

some fixes and minor modifications for the launching of the accommodation module

File:
1 edited

Legend:

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

    r655 r659  
    2121
    2222if context.isManager():
    23     return redirect("%s/academics_contents" % context.absolute_url())
     23    return redirect("%s/student_view" % context.absolute_url())
    2424if context.isStudent():
    2525    info = context.getStudentInfo()
    2626    student = info['student']
    27 #    doc = info['app_doc']
    28 #    state = context.getStudentInfo()['review_state']
    29 #    if state == 'admission_applied':
    30 #       elif state == 'application_pin_entered':
    31 #        return redirect("%s/passport_entry_view" % student.absolute_url())
    32 
    33     return redirect("%s/student_view" % student.absolute_url())
     27    doc = info['app_doc']
     28    state = context.getStudentInfo()['review_state']
     29    if state == 'admission_applied':
     30        return redirect("%s/application_view" % student.absolute_url())
     31    elif state == 'application_pin_entered':
     32        return redirect("%s/passport_entry_view" % student.absolute_url())
    3433
    3534
Note: See TracChangeset for help on using the changeset viewer.