Changeset 542 for WAeUP_SRP/trunk/skins/waeup_academics
- Timestamp:
- 24 Sep 2006, 06:03:25 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/academics_index.py
r538 r542 1 ## Script (Python) " cpsdocument_edit"1 ## Script (Python) "academics_index" 2 2 ##bind container=container 3 3 ##bind context=context … … 10 10 # $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $ 11 11 """ 12 return the appropriate page in the academics section 12 return the appropriate page in the academics section 13 13 """ 14 14 15 15 request = context.REQUEST 16 16 redirect = request.RESPONSE.redirect 17 pm = context.portal_membership 18 19 if pm.isAnonymousUser(): 20 return redirect("%s/academics_contents" % context.absolute_url()) 21 17 22 campus = context.portal_catalog(meta_type = "University")[-1].getObject() 18 pm = context.portal_membership19 23 member = pm.getAuthenticatedMember() 20 24 roles = member.getRoles() 21 25 isManager = "Manager" in roles or "SectionManager" in roles 22 26 isStudent = "Student" in roles 27 23 28 if isManager: 24 29 return redirect("%s/academics_contents" % context.absolute_url()) 25 30 if isStudent: 26 31 return redirect("%s/academics_contents" % context.absolute_url()) 27 if pm.isAnonymousUser():28 return redirect("%s/acacemics_contents" % context.absolute_url())29 30 info = context.getStudentInfo()31 student = info['student']32 doc = info['app_doc']33 state = context.getStudentInfo()['review_state']34 if state == 'admission_applied':35 return redirect("%s/application_view" % student.absolute_url())36 elif state == 'application_pin_entered':37 return redirect("%s/passport_entry_view" % student.absolute_url())38 39 32
Note: See TracChangeset for help on using the changeset viewer.