Changeset 2925 for WAeUP_SRP/base/skins/waeup_epayment
- Timestamp:
- 12 Dec 2007, 11:51:17 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.