- Timestamp:
- 28 Oct 2007, 16:47:34 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_epayment/getPaymentsFolderInfo.py
r2459 r2461 54 54 parttime = s_brain.mode.endswith('_pt') 55 55 fulltime = s_brain.mode.endswith('_ft') 56 online_payment = False57 sc_payment = False58 56 59 57 #if review_state == 'cleared_and_validated' or (parttime and review_state == 'returning'): … … 62 60 # sc_payment = True 63 61 64 info['online_payment'] = online_payment65 info['sc_payment'] = sc_payment66 info['prod_id'] = '61'67 62 session = s_brain.session 68 63 next_info = context.getNextInfo(s_brain) 69 64 info['next_session'] = next_info['next_session_id'] 70 65 info['next_session_str'] = next_info['next_session_str'] 66 info['payment_method'] = "done" 67 if next_info['next_transition'] is None and next_info['reasons']: 68 info['payment_method'] = "not_possible" 69 info['reasons'] = next_info['reasons'] 70 elif review_state == 'cleared_and_validated': 71 info['payment_method'] = "online_payment" 72 elif review_state == 'returning' and info['next_session'] != session: 73 info['payment_method'] = "sc_payment" 71 74 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 75 info['prod_id'] = '61' 76 76 77 77 78 info['student_name'] = s_brain.name
Note: See TracChangeset for help on using the changeset viewer.