Changeset 2475
- Timestamp:
- 29 Oct 2007, 18:46:43 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_epayment/interswitch_cb.py
r2454 r2475 81 81 next_level_id = next_info['next_level_id'] 82 82 next_transition = next_info['next_transition'] 83 next_verdict = next_info['next_verdict'] 83 84 84 85 if resp == '00': … … 91 92 except: 92 93 pass 94 verdict = s_brain.verdict 93 95 study_course.getContent().edit(mapping= {'current_level': next_level_id, 94 'current_session': next_session_id,}) 96 'current_session': next_session_id, 97 'previous_verdict': verdict, 98 }) 95 99 if next_transition: 96 wftool.doActionFor(student,next_transition) 100 wftool.doActionFor(student,next_transition) 97 101 98 102 logger.info('%s received valid callback' % student_id) -
WAeUP_SRP/base/skins/waeup_epayment/pay_by_sc.py
r2459 r2475 43 43 next_level_id = next_info['next_level_id'] 44 44 next_transition = next_info['next_transition'] 45 next_verdict = next_info['next_verdict'] 45 46 46 47 validate = request.has_key("cpsdocument_create_button") … … 115 116 wftool.doActionFor(study_course,'open') 116 117 except: 117 pass 118 pass 119 verdict = s_brain.verdict 118 120 study_course.getContent().edit(mapping= {'current_level': next_level_id, 119 'current_session': next_session_id,}) 121 'current_session': next_session_id, 122 'current_verdict': next_verdict, 123 'previous_verdict': verdict, 124 }) 120 125 if next_transition: 121 126 wftool.doActionFor(student,next_transition) -
WAeUP_SRP/base/skins/waeup_student/getNextInfo.py
r2473 r2475 34 34 info['next_session_id'] = next_session_id = session_id 35 35 info['next_level_id'] = next_level_id = level_id 36 info['next_verdict'] = verdict 36 37 verdicts_voc = context.portal_vocabularies.verdicts 37 38 if review_state == 'cleared_and_validated': 38 39 info['next_transition'] = "pay_school_fee" 40 info['next_verdict'] = '' 39 41 elif review_state == 'returning' and has_verdict and has_level and has_session: 40 42 info['next_session_id'] = next_session_id = "%02d" % (int(session_id)+1) 41 43 if int(session_id) > int(context.getSessionId()[0]) -2: 42 44 info['next_transition'] = "pay_school_fee" 45 info['next_verdict'] = '' 43 46 if verdict in ('A','B',): 44 47 info['next_level_id'] = "%s" % (int(level_id) + 100) -
WAeUP_SRP/base/skins/waeup_student/getStudyCourseInfo.py
r2456 r2475 88 88 except: 89 89 info['verdict'] = course.current_verdict 90 try: 91 info['previous_verdict'] = context.portal_vocabularies.verdicts.get(info['doc'].previous_verdict).upper() 92 except: 93 info['previous_verdict'] = course.previous_verdict 90 94 91 95 return info -
WAeUP_SRP/base/skins/waeup_student/study_course_view.pt
r2138 r2475 41 41 <td><span tal:content="info/verdict" /></td> 42 42 </tr> 43 <tr> 44 <td width="220px">Previous Verdict:</td> 45 <td><span tal:content="info/previous_verdict" /></td> 46 </tr> 43 47 <tr> 44 48 <td width="220px">Certificate:</td> -
WAeUP_SRP/fceokene/profiles/default/layouts/student_study_course.xml
r1989 r2475 87 87 <property name="vocabulary">verdicts</property> 88 88 </widget> 89 <widget name="previous_verdict" meta_type="Select Widget"> 90 <property name="title">Previous Verdict</property> 91 <property name="fields"> 92 <element value="previous_verdict"/> 93 </property> 94 <property name="is_required">False</property> 95 <property name="label">Previous Verdict</property> 96 <property name="label_edit">Previous Verdict</property> 97 <property name="readonly_layout_modes"/> 98 <property name="hidden_layout_modes"/> 99 <property name="hidden_readonly_layout_modes"/> 100 <property name="vocabulary">verdicts</property> 101 </widget> 89 102 <table> 90 103 <row> … … 101 114 </row> 102 115 <row> 116 <cell name="previous_verdict"/> 117 </row> 118 <row> 103 119 <cell name="current_level"/> 104 120 </row> -
WAeUP_SRP/fceokene/profiles/default/schemas/student_study_course.xml
r1820 r2475 12 12 <field name="current_level" meta_type="CPS String Field"/> 13 13 <field name="current_verdict" meta_type="CPS String Field"/> 14 <field name="previous_verdict" meta_type="CPS String Field"/> 14 15 </object>
Note: See TracChangeset for help on using the changeset viewer.