Ignore:
Timestamp:
30 Oct 2007, 23:56:17 (17 years ago)
Author:
Henrik Bettermann
Message:

getSessionResults.py: fetch verdict from results
aos.xml: ticket #371
logged_in.py: fixed

File:
1 edited

Legend:

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

    r2478 r2485  
    4747    try:
    4848        study_course_doc = getattr(getattr(students,brain.id),'study_course').getContent()
    49         verdict = study_course_doc.current_verdict
     49       
     50        # final fix
     51        if brain.matric_no:
     52            verdict = study_course_doc.current_verdict
     53        else:
     54            verdict = ''
    5055        study_course_doc.edit(mapping = { "current_verdict": '',
    5156                                          "previous_verdict": verdict})
    52         #rwrite('found %s , %s ,%s, %s' % (brain.id,
    53         #                                  study_course_doc.current_session,
    54         #                                  brain.matric_no,
    55         #                                  brain.name))
     57
     58        # Info: The logging message is wrong if not matric_no
    5659        logger.info("Current verdict of %s (%s, %s, %s, %s) moved to previous verdict" % (brain.id,
    5760                                          brain.matric_no,
Note: See TracChangeset for help on using the changeset viewer.