Changeset 2459
- Timestamp:
- 28 Oct 2007, 13:56:01 (17 years ago)
- Location:
- WAeUP_SRP/base/skins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_epayment/getPaymentsFolderInfo.py
r2454 r2459 62 62 # sc_payment = True 63 63 64 if review_state == 'cleared_and_validated':65 online_payment = True66 elif review_state == 'returning':67 sc_payment = True68 69 64 info['online_payment'] = online_payment 70 65 info['sc_payment'] = sc_payment … … 74 69 info['next_session'] = next_info['next_session_id'] 75 70 info['next_session_str'] = next_info['next_session_str'] 71 72 if review_state == 'cleared_and_validated': 73 online_payment = True 74 elif review_state == 'returning' and info['next_session'] != session: 75 sc_payment = True 76 76 77 77 info['student_name'] = s_brain.name -
WAeUP_SRP/base/skins/waeup_epayment/pay_by_sc.py
r2454 r2459 112 112 113 113 study_course = getattr(student,'study_course') 114 try: 115 wftool.doActionFor(study_course,'open') 116 except: 117 pass 114 118 study_course.getContent().edit(mapping= {'current_level': next_level_id, 115 119 'current_session': next_session_id,}) 116 120 if next_transition: 117 wftool.doActionFor(student,next_transition) 118 121 wftool.doActionFor(student,next_transition) 122 119 123 #if next_session == context.getSessionId()[-2:]: 120 124 # wftool.doActionFor(student,'pay_school_fee') … … 126 130 # study_course_doc.edit(mapping= {'current_level': next_level, 127 131 # 'current_session': next_session,}) 128 132 129 133 logger.info('%s paid school fee by scratch card' % student_id) 130 134 else: -
WAeUP_SRP/base/skins/waeup_student/getNextInfo.py
r2456 r2459 25 25 if review_state == 'cleared_and_validated': 26 26 info['next_transition'] = "pay_school_fee" 27 elif review_state == 'returning': 28 if level_id: 29 info['next_level_id'] = "%s" % (int(level_id) + 100) 30 if session_id: 31 info['next_session_id'] = next_session_id = "%02d" % (int(session_id)+1) 32 if int(session_id) > int(context.getSessionId()[0]) -2: 33 info['next_transition'] = "pay_school_fee" 34 if verdict not in ('A','B',): 35 info['next_level_id'] = level_id 27 elif review_state == 'returning' and verdict and level_id and session: 28 info['next_level_id'] = "%s" % (int(level_id) + 100) 29 info['next_session_id'] = next_session_id = "%02d" % (int(session_id)+1) 30 if int(session_id) > int(context.getSessionId()[0]) -2: 31 info['next_transition'] = "pay_school_fee" 32 if verdict not in ('A','B',): 33 info['next_level_id'] = level_id 36 34 37 35 info['next_session_str'] = context.sessions_voc(next_session_id)
Note: See TracChangeset for help on using the changeset viewer.