Changeset 839 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
11 Nov 2006, 12:49:31 (18 years ago)
Author:
Henrik Bettermann
Message:

view aliases of StudentTypes? set to student_index
student_index now controls the view of student objects

File:
1 edited

Legend:

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

    r837 r839  
    2424    elif context.portal_type == 'StudentStudyLevel':
    2525        return context.study_level_view()
    26     return redirect("%s/student_view" % context.absolute_url())
     26    elif context.portal_type == 'StudentClearance':
     27        return context.clearance_view()
     28    elif context.portal_type == 'Student':
     29        return redirect("%s/student_view" % context.absolute_url())
     30    return redirect("%s/waeup_document_view" % context.absolute_url())
    2731if context.isStudent():
    2832    info = context.getStudentInfo()
    2933    student = info['student']
    30     doc = info['app_doc']
    31     state = context.getStudentInfo()['review_state']
    32     if state == 'admission_applied':
    33         return redirect("%s/application_view" % student.absolute_url())
    34     elif state in ('application_pin_entered',):
    35         return redirect("%s/application_edit" % info['app'].absolute_url())
    36     elif state in ('admitted',):
    37         return redirect("%s/admission_form" % student.absolute_url())
    38     elif state == 'clearance_pin_entered':
    39         return redirect("%s/student_view" % info['clear'].absolute_url())
    40     elif context.portal_type == 'StudentStudyLevel':
    41         return context.study_level_student_view()
     34    #doc = info['app_doc']
     35    #state = context.getStudentInfo()['review_state']
     36    #if state == 'admission_applied':
     37    #    return redirect("%s/application_view" % student.absolute_url())
     38    #elif state in ('application_pin_entered',):
     39    #    return redirect("%s/application_edit" % info['app'].absolute_url())
     40    #elif state in ('admitted',):
     41    #    return redirect("%s/admission_form" % student.absolute_url())
     42    #elif state == 'clearance_pin_entered':
     43    #    return redirect("%s/student_view" % info['clear'].absolute_url())
     44    #elif context.portal_type == 'StudentStudyLevel':
     45    #    return context.study_level_student_view()
    4246    return redirect("%s/student_view" % student.absolute_url())
Note: See TracChangeset for help on using the changeset viewer.