Changeset 839 for WAeUP_SRP/trunk/skins
- Timestamp:
- 11 Nov 2006, 12:49:31 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/student_index.py
r837 r839 24 24 elif context.portal_type == 'StudentStudyLevel': 25 25 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()) 27 31 if context.isStudent(): 28 32 info = context.getStudentInfo() 29 33 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() 42 46 return redirect("%s/student_view" % student.absolute_url())
Note: See TracChangeset for help on using the changeset viewer.