- Timestamp:
- 19 Dec 2006, 12:11:44 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py
r1092 r1094 84 84 app_doc.edit(mapping = da) 85 85 if s_review_state == "application_pin_entered": 86 r eturn response.redirect("%s/application_edit_form" % student.absolute_url())86 rdirect_url = "%s/application_edit_form" % student.absolute_url() 87 87 elif s_review_state in ('admitted', 'objection_raised',): 88 re turn response.redirect("%s/admission_form" % student.absolute_url())88 redirect_url = "%s/admission_form" % student.absolute_url() 89 89 elif s_review_state == "clearance_pin_entered": 90 re turn response.redirect("%s/clearance_edit_form" % student.absolute_url())91 re turn response.redirect("%s/student_index" % student.absolute_url())90 redirect_url = "%s/clearance_edit_form" % student.absolute_url() 91 redirect_url = "%s/student_index" % student.absolute_url() 92 92 else: 93 93 logger.info('"%s", "logged in"' % (member)) 94 return response.redirect(portal.absolute_url()) 94 redirect_url = portal.absolute_url() 95 #Anonymous 95 96 else: 96 # Setup skins97 if (getattr(utool, 'updateSkinCookie', False) and98 utool.updateSkinCookie()):99 context.setupCurrentSkin()100 97 response.expireCookie('__ac', path='/') 101 98 return context.user_logged_in_failed() 102 99 100 # Setup skins 101 if (getattr(utool, 'updateSkinCookie', False) and 102 utool.updateSkinCookie()): 103 context.setupCurrentSkin() 103 104 105 response.redirect(redirect_url) 106 -
WAeUP_SRP/trunk/skins/waeup_student/delete_student_from_catalog.py
r1089 r1094 5 5 ##bind script=script 6 6 ##bind subpath=traverse_subpath 7 ##parameters=id= [], REQUEST=None7 ##parameters=id=None, REQUEST=None 8 8 ##title= 9 9 ## -
WAeUP_SRP/trunk/skins/waeup_student/refresh_certificate_info.py
r1093 r1094 18 18 s_cat = context.students_catalog 19 19 s_res = s_cat(course = certid) 20 from Products.zdb import set_trace21 set_trace()20 #from Products.zdb import set_trace 21 #set_trace() 22 22 if not s_res: 23 23 return "No students for %s not found" 24 24 refreshed = [] 25 25 refreshed.append("Record started") 26 for student_id in [st.id for st in s_res]: 26 for student_id in [st.id for st in s_res]: 27 27 s_cat.modifyRecord(id = student_id, 28 28 course = course,
Note: See TracChangeset for help on using the changeset viewer.