Changeset 3365 for WAeUP_SRP


Ignore:
Timestamp:
21 Mar 2008, 07:59:33 (17 years ago)
Author:
Henrik Bettermann
Message:

logging improved

File:
1 edited

Legend:

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

    r3361 r3365  
    4444missing_courses = []
    4545wrong_modes = {}
     46students_with_missing_courses = []
    4647for student in students:
    4748    count += 1
     
    4950        certificate = certificates.get(student.course,None)
    5051        if certificate is None:
     52            students_with_missing_courses += student.id,
    5153            if student.course not in missing_courses:
    5254                missing_courses += student.course,
    53                 logger.info('missing course %s' % student.course)
     55                #logger.info('missing course %s' % student.course)
    5456            continue
    5557        entry_mode = student.entry_mode
    56         study_mode = certificate.get('study_mode','xxx') 
    57         if entry_mode != study_mode: 
     58        study_mode = certificate.get('study_mode','xxx')
     59        if entry_mode != study_mode:
    5860            w_count =  wrong_modes.get((entry_mode,study_mode),0)
    5961            if w_count == 0:
     
    6769for k,v in wrong_modes.items():
    6870    logger.info('wrong mode %s counted %d' % (k,v))
    69 logger.info('missing courses %s' % (', '.join(missing_courses)))
     71logger.info('missing courses %s (%d counted)' % (', '.join(missing_courses),len(students_with_missing_courses)))
    7072logger.info('found %d wrong of %d' % (len(wrong),count))
Note: See TracChangeset for help on using the changeset viewer.