Changeset 542 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 24 Sep 2006, 06:03:25 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 1 deleted
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/application_slip.pt
r537 r542 7 7 <span tal:condition="info" 8 8 tal:define="review_state info/review_state"> 9 <h3>Post UME Acknowledegement Slip</h3> 10 <br /> 9 11 <span tal:omit-tag="" 10 12 tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'], -
WAeUP_SRP/trunk/skins/waeup_student/application_view.pt
r535 r542 7 7 <span tal:condition="info" 8 8 tal:define="review_state info/review_state"> 9 <h3 tal:content="info/review_state|nothing"></h3> 9 <h3>My Application Record</h3> 10 <br /> 10 11 <span tal:omit-tag="" 11 12 tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'], -
WAeUP_SRP/trunk/skins/waeup_student/layout_application_print.pt
r537 r542 4 4 widgets python:context.getRenderedWidgets(layout);" 5 5 > 6 <h3>Post UME Acknowledegement Slip</h3> 7 <br /> 6 8 7 <table cellpadding="10em" cellspacing=""> 9 8 <tr> -
WAeUP_SRP/trunk/skins/waeup_student/students_index.py
r540 r542 1 ## Script (Python) " cpsdocument_edit"1 ## Script (Python) "students_indext" 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 current student _index_html12 return the current students_index_html 13 13 """ 14 14 15 15 request = context.REQUEST 16 16 redirect = request.RESPONSE.redirect 17 pm = context.portal_membership 18 19 20 if pm.isAnonymousUser(): 21 return redirect("%s/campus_anonymous_view" % context.campus.absolute_url()) 22 23 17 24 campus = context.portal_catalog(meta_type = "University")[-1].getObject() 18 pm = context.portal_membership19 if pm.isAnonymousUser():20 return redirect("%s/students_anonymous_view" % campus.students.absolute_url())21 25 member = pm.getAuthenticatedMember() 22 26 roles = member.getRoles() 23 if "Manager" in roles or "SectionManager" in roles: 24 return redirect("%s/students_manager_view" % campus.students.absolute_url()) 25 26 info = context.getStudentInfo() 27 student = info['student'] 28 doc = info['app_doc'] 29 state = context.getStudentInfo()['review_state'] 30 if state == 'admission_applied': 31 return redirect("%s/application_view" % student.absolute_url()) 32 elif state == 'application_pin_entered': 33 return redirect("%s/passport_entry_view" % student.absolute_url()) 27 isManager = "Manager" in roles or "SectionManager" in roles 28 isStudent = "Student" in roles 29 30 if isManager: 31 return redirect("%s/academics_contents" % campus.students.absolute_url()) 32 if isStudent: 33 info = context.getStudentInfo() 34 student = info['student'] 35 doc = info['app_doc'] 36 state = context.getStudentInfo()['review_state'] 37 if state == 'admission_applied': 38 return redirect("%s/application_view" % student.absolute_url()) 39 elif state == 'application_pin_entered': 40 return redirect("%s/passport_entry_view" % student.absolute_url())
Note: See TracChangeset for help on using the changeset viewer.