Changeset 3967 for WAeUP_SRP/trunk/skins/waeup_epayment
- Timestamp:
- 19 Feb 2009, 10:54:25 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/purgeSFPayments.py
r3965 r3967 30 30 paid_status = ('school_fee_paid','courses_registered','courses_validated') 31 31 students = context.students_catalog(review_state = paid_status) 32 student_total = len(students) 32 33 counter = 0 33 34 counter_unpaid = 0 34 35 commit_after = 100 35 36 records_to_del = [] 37 student_count = 0 36 38 for student in students: 39 student_count += 1 37 40 to_del = [] 38 41 student_id = student.id … … 49 52 if getattr(payments_folder,pid,False): 50 53 to_del += pid, 51 logger.info('object deleted: %s , %s' % (payment.student_id, pid))54 logger.info('object deleted: %s (%d of %d), %s' % (payment.student_id, student_count, student_total, pid)) 52 55 else: 53 56 logger.info('no object: %s, %s' % (payment.student_id, pid))
Note: See TracChangeset for help on using the changeset viewer.