Changeset 2925 for WAeUP_SRP/base
- Timestamp:
- 12 Dec 2007, 11:51:17 (17 years ago)
- Location:
- WAeUP_SRP/base
- Files:
-
- 2 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))
Note: See TracChangeset for help on using the changeset viewer.