Changeset 8430 for main/waeup.uniben/trunk/src/waeup/uniben/students
- Timestamp:
- 12 May 2012, 08:43:51 (13 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/interfaces.py
r8416 r8430 372 372 readonly = True, 373 373 ) 374 375 def doAfterStudentPayment(): 376 """Process student after payment was made. 377 378 """ 379 380 def approveStudentPayment(): 381 """Approve payment and process student. 382 383 """ 384 374 385 ICustomStudentOnlinePayment['p_level'].order = ICustomStudentOnlinePayment[ 375 386 'p_session'].order -
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r8421 r8430 33 33 return fee 34 34 return 0.0 35 36 def actions_after_student_payment(student, payment, view):37 if payment.p_category == 'clearance':38 # Create CLR access code39 pin, error = create_accesscode('CLR',0,student.student_id)40 if error:41 view.flash(_('Valid callback received. ${a}',42 mapping = {'a':error}))43 return44 payment.ac = pin45 elif payment.p_category == 'schoolfee':46 # Create SFE access code47 pin, error = create_accesscode('SFE',0,student.student_id)48 if error:49 view.flash(_('Valid callback received. ${a}',50 mapping = {'a':error}))51 return52 payment.ac = pin53 elif payment.p_category == 'bed_allocation':54 # Create HOS access code55 pin, error = create_accesscode('HOS',0,student.student_id)56 if error:57 view.flash(_('Valid callback received. ${a}',58 mapping = {'a':error}))59 return60 payment.ac = pin61 view.flash(_('Valid callback received.'))62 return63 35 64 36 class CustomStudentsUtils(StudentsUtils):
Note: See TracChangeset for help on using the changeset viewer.