- Timestamp:
- 10 Dec 2007, 23:57:23 (17 years ago)
- Location:
- WAeUP_SRP/base/skins
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_epayment/upgradePayments.py
r2915 r2918 50 50 logger.info("found %d payments" % total) 51 51 sid = "xxx" 52 count = 152 count = 0 53 53 commit_after = 5 54 commit_count = 054 #commit_count = 0 55 55 56 56 student_id = '' 57 57 for payment_brain in payments: 58 count += 1 58 59 payment = payment_brain.getObject() 59 60 if payment_brain.getPath().split('/')[-3] != student_id: … … 62 63 payment['updatePayment'](student_record) 63 64 logger.info('upgraded student %s payment %s' % (student_record.id,payment.getId())) 64 if not count % commit_after:65 logger.info("committing %d total %d" % (commit_after,count))65 #if not count % commit_after: 66 # logger.info("committing %d total %d" % (commit_after,count)) 66 67 #commit_count += 1 67 68 #if not commit_count % 2: 68 69 # break 69 count += 170 70 logger.info("%d of %d upgraded" % (count,total))
Note: See TracChangeset for help on using the changeset viewer.