Changeset 3129 for WAeUP_SRP/base
- Timestamp:
- 8 Feb 2008, 10:37:31 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_utilities/changeCreditsInCourseResults.py
r3113 r3129 40 40 course = context.courses_catalog.getRecordByKey(course_id) 41 41 new_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)) 44 44 to_edit = [] 45 45 for course_result in course_results: … … 52 52 continue 53 53 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))54 logger.info('%d %s course results found, start editing credits from %s to %s' % 55 (len(course_results),course_id,old_credits,new_credits)) 56 56 for key in to_edit: 57 57 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), 58 logger.info('finished editing %d %s course results, %d had wrong credits' % (count, course_id, 60 59 wrong)) 61 60
Note: See TracChangeset for help on using the changeset viewer.