Changeset 3129 for WAeUP_SRP


Ignore:
Timestamp:
8 Feb 2008, 10:37:31 (17 years ago)
Author:
Henrik Bettermann
Message:

improve logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_utilities/changeCreditsInCourseResults.py

    r3113 r3129  
    4040course = context.courses_catalog.getRecordByKey(course_id)
    4141new_credits = course.credits
    42 logger.info('started to change %d course_results credits from %s to %s' %
    43             (len(course_results),old_credits,new_credits))
     42#logger.info('started to change %d course_results credits from %s to %s' %
     43#            (len(course_results),old_credits,new_credits))
    4444to_edit = []
    4545for course_result in course_results:
     
    5252        continue
    5353    to_edit += course_result.key,
    54 logger.info('found %d course_results to edit credits from %s to %s' %
    55             (len(course_results),old_credits,new_credits))
     54logger.info('%d %s course results found, start editing credits from %s to %s' %
     55            (len(course_results),course_id,old_credits,new_credits))
    5656for key in to_edit:
    5757    context.course_results.modifyRecord(**{'key': key, 'credits': int(new_credits)})
    58 logger.info('finished, %d found, %d edited %d with wrong credit ' % (count,
    59                                                                      len(to_edit),
     58logger.info('finished editing %d %s course results, %d had wrong credits' % (count, course_id,
    6059                                                                     wrong))
    6160
Note: See TracChangeset for help on using the changeset viewer.