Changeset 767 for WAeUP_SRP/trunk/skins
- Timestamp:
- 27 Oct 2006, 18:41:45 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py
r766 r767 52 52 student = info['student'] 53 53 if info['review_state'] in ("student_created","admitted"): 54 student.content_status_modify(workflow_action="enter_clearance_pin")54 #student.content_status_modify(workflow_action="enter_clearance_pin") 55 55 wftool.doActionFor(info['app'],'open',dest_container=info['app']) 56 56 da = {} -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r766 r767 72 72 s_edit_links = {'StudentApplication': 'student_edit', 73 73 'StudentAccommodation': '', 74 'StudentClearance': ' ',74 'StudentClearance': 'clearance_student', 75 75 'StudentPersonal': '', 76 76 } … … 97 97 row['s_edit_link'] = None 98 98 if se_link: 99 row['s_edit_link'] = "%s/%s" % (s tudent.absolute_url(),se_link)99 row['s_edit_link'] = "%s/%s" % (soo.absolute_url(),se_link) 100 100 row['review_state'] = so.review_state 101 101 row['display'] = so.review_state in ('opened','closed',) or\ -
WAeUP_SRP/trunk/skins/waeup_student/student_edit.py
r766 r767 70 70 psm = 'psm_content_error' 71 71 else: 72 psm = '' 72 73 args = {} 73 74 if info['review_state'] == "student_created": … … 76 77 psm = 'You applied for admission.' 77 78 action = "/application_view" 78 elif info['review_state'] == " clearance_pin_entered":79 student.content_status_modify(workflow_action=" request_clearance")79 elif info['review_state'] == "admitted": 80 student.content_status_modify(workflow_action="enter_clearance_pin") 80 81 #wftool.doActionFor(info['clear'],'open',dest_container=info['clear']) 81 da = {}82 pin = REQUEST.get('pin')83 da['app_ac_pin'] = pin84 da['app_ac_date'] = current85 82 app_doc = info['app_doc'] 86 app_doc.edit(mapping = da)87 83 dc = {} 88 84 dc['email'] = app_doc.appl_email 89 85 dc['mobil'] = app_doc.appl_mobile 90 dc['passport'] = app_doc.passport91 86 info['clear_doc'].edit(mapping = dc) 92 87 wftool.doActionFor(app,'close',dest_container= app) 93 psm = 'You requested clearance.'88 psm = 'You successfully started the clearance process.' 94 89 action = "/clearance_view" 95 90 else: 96 psm = ''97 91 action = "/clearance_view" 98 92 99 93 else: 100 94 is_valid, ds = app_doc.validate(request=REQUEST, proxy=context, cluster=cluster, -
WAeUP_SRP/trunk/skins/waeup_student/student_index.py
r766 r767 32 32 if state == 'admission_applied': 33 33 return redirect("%s/application_view" % student.absolute_url()) 34 elif state in ('application_pin_entered',' clearance_pin_entered'):34 elif state in ('application_pin_entered','admitted'): 35 35 return redirect("%s/passport_entry_view" % student.absolute_url()) 36 elif state == ' request_clearance':36 elif state == 'clearance_pin_entered': 37 37 return redirect("%s/student_view" % info['clear'].absolute_url()) 38 38 elif context.portal_type == 'StudentStudyLevel':
Note: See TracChangeset for help on using the changeset viewer.