Changeset 2925
- Timestamp:
- 12 Dec 2007, 11:51:17 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Payment.py
r2917 r2925 101 101 # d['order_id'] = "%s%s" % (student_record.id[1:],self.aq_parent.getId()[1:]) 102 102 103 p_type = "online" 103 104 if doc.resp_code in ("00","IP","AP"): 104 p_type = "online"105 105 p_status = "paid" 106 106 break 107 p_type = "online" 108 p_status = "started" 107 elif doc.resp_code == '': 108 p_status = "started" 109 else: 110 p_status = "failed" 109 111 # don't set order_id it is already correct 110 112 -
WAeUP_SRP/base/skins/waeup_epayment/upgradePayments.py
r2923 r2925 51 51 sid = "xxx" 52 52 count = 0 53 commit_after = 554 #commit_count = 053 commit_after = 10 54 commit_count = 0 55 55 56 56 student_id = '' … … 63 63 payment['updatePayment'](student_record) 64 64 logger.info('upgraded student %s payment %s' % (student_record.id,payment.getId())) 65 #if not count % commit_after: 66 # logger.info("committing %d total %d" % (commit_after,count)) 67 #commit_count += 1 68 #if not commit_count % 2: 69 # break 65 if not count % commit_after: 66 logger.info("committing %d total %d" % (commit_after,count)) 67 commit_count += 1 68 context.waeup_tool.doCommit() 69 if not commit_count % 2: 70 break 70 71 logger.info("%d of %d upgraded" % (count,total)) -
WAeUP_SRP/uniben/waeup_custom/getSchoolFee.py
r2830 r2925 107 107 "BAGRSW":{'description':"Bachelor of Agricultural Science Education (Sandwich)",'returning':"23200",'new':"38700"}, 108 108 "BHEDSW":{'description':"Bachelor of Health Education (Sandwich)",'returning':"23200",'new':"38700"}, 109 "BAH":{'description':"Bachelor of Arts in History",'returning':"27700",'new':"42200"}, 110 "B AFW":{'description':"Bachelor in Agriculture (Forestry & Wildlife)",'returning':"27700",'new':"42200"},111 109 "BAH":{'description':"Bachelor of Arts in History",'returning':"27700",'new':"42200"}, 110 "BFW":{'description':"Bachelor in Agriculture (Forestry & Wildlife)",'returning':"27700",'new':"42200"}, 111 112 112 } 113 113
Note: See TracChangeset for help on using the changeset viewer.