Changeset 3368


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

not entry_mode but current_mode (mode) must be checked

File:
1 edited

Legend:

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

    r3365 r3368  
    4747for student in students:
    4848    count += 1
    49     if student.entry_mode and student.course:
     49    if student.mode and student.course:
    5050        certificate = certificates.get(student.course,None)
    5151        if certificate is None:
     
    5555                #logger.info('missing course %s' % student.course)
    5656            continue
    57         entry_mode = student.entry_mode
     57        current_mode = student.mode
    5858        study_mode = certificate.get('study_mode','xxx')
    59         if entry_mode != study_mode:
    60             w_count =  wrong_modes.get((entry_mode,study_mode),0)
     59        if current_mode != study_mode:
     60            w_count =  wrong_modes.get((current_mode,study_mode),0)
    6161            if w_count == 0:
    62                 logger.info('%s != %s' % (student.entry_mode,
     62                logger.info('%s != %s' % (student.mode,
    6363                                          study_mode))
    6464            w_count += 1
    65             wrong_modes[(entry_mode,study_mode)] = w_count
     65            wrong_modes[(current_mode,study_mode)] = w_count
    6666            wrong += student.id,
    6767    if wrong and not (len(wrong) % commit_after):
Note: See TracChangeset for help on using the changeset viewer.