Changeset 999 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 6 Dec 2006, 10:46:32 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/check_admission.py
r997 r999 48 48 elif psm == 'valid': 49 49 s_id = ds.get('s_id') 50 <<<<<<< .mine 51 if is_anon and not s_id: 52 return context.check_admission_pin_form(rendered = res, 53 psm = "You are not allowed to do this in this context", 54 #psm = "%s, %s" % (psm,ds), 55 firstlayout = True, 56 lastlayout = True, 57 ds = ds, 58 ) 59 elif not is_anon: 60 return context.check_admission_pin_form(rendered = res, 61 psm = "You are logged in", 62 #psm = "%s, %s" % (psm,ds), 63 firstlayout = True, 64 lastlayout = True, 65 ds = ds, 66 ) 67 ======= 50 68 if is_anon and not s_id: 51 69 return context.check_admission_pin_form(rendered = res, … … 64 82 ds = ds, 65 83 ) 84 >>>>>>> .r998 66 85 ## 67 86 ## email = ds.get('app_email') -
WAeUP_SRP/trunk/skins/waeup_student/search_students.py
r985 r999 50 50 validate = request.has_key("cpsdocument_edit_button") 51 51 default = {'search_mode': 'name', 52 'review_state': ' clearance_requested',52 'review_state': 'all', 53 53 'search_string': '' 54 54 } -
WAeUP_SRP/trunk/skins/waeup_student/student_index.py
r903 r999 16 16 redirect = request.RESPONSE.redirect 17 17 pm = context.portal_membership 18 member = pm.getAuthenticatedMember() 18 19 19 20 if context.isStaff(): … … 25 26 return context.clearance_view() 26 27 elif context.portal_type == 'Student': 27 28 return redirect("%s/student_view" % context.absolute_url()) 28 29 return redirect("%s/waeup_document_view" % context.absolute_url()) 29 30 if context.isStudent(): 30 info = context.getStudentInfo()31 student = info['student']31 students = context.portal_url.getPortalObject().campus.students 32 student = getattr(students,str(member)) 32 33 return redirect("%s/student_view" % student.absolute_url()) 33 34
Note: See TracChangeset for help on using the changeset viewer.