Ignore:
Timestamp:
19 Feb 2009, 10:54:25 (16 years ago)
Author:
Henrik Bettermann
Message:

session, level, and mode widgets must not allow empty strings
So far, the mode vocabulary has only been changed for FUT Minna. Should be changed for other portals too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/purgeSFPayments.py

    r3965 r3967  
    3030paid_status = ('school_fee_paid','courses_registered','courses_validated')
    3131students = context.students_catalog(review_state = paid_status)
     32student_total = len(students)
    3233counter = 0
    3334counter_unpaid = 0
    3435commit_after = 100
    3536records_to_del = []
     37student_count = 0
    3638for student in students:
     39    student_count += 1
    3740    to_del = []
    3841    student_id = student.id
     
    4952        if getattr(payments_folder,pid,False):
    5053            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))
    5255        else:
    5356            logger.info('no object: %s, %s' % (payment.student_id, pid))
Note: See TracChangeset for help on using the changeset viewer.