Ignore:
Timestamp:
28 Oct 2007, 17:42:26 (17 years ago)
Author:
joachim
Message:

fix view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/getNextInfo.py

    r2462 r2464  
    1212return the students next info
    1313"""
     14try:
     15    from Products.zdb import set_trace
     16except:
     17    def set_trace():
     18        pass
    1419
    1520info = {}
     
    2631if review_state == 'cleared_and_validated':
    2732    info['next_transition'] = "pay_school_fee"
    28 elif review_state == 'returning' and verdict and level_id and session:
    29     info['next_level_id'] = "%s" % (int(level_id) + 100)
    30     info['next_session_id'] = next_session_id = "%02d" % (int(session_id)+1)
     33elif review_state == 'returning' and verdict and level_id and student_brain.session:
    3134    if int(session_id) > int(context.getSessionId()[0]) -2:
    32         info['next_transition'] = "pay_school_fee"
    3335        if verdict not in ('A','B',):
    3436            info['next_level_id'] = level_id
    3537            if not verdict:
    36                 reasons += "There is no verdict."
     38                reasons += "There is no verdict.",
    3739            else:
    38                 reasons += "Your are not a %s" % verdicts_voc.get('A') 
    39                 reasons += "or not a %s" % verdicts_voc.get('B') 
     40                reasons += "Your are not a %s" % verdicts_voc.get('A'),
     41                reasons += "or not a %s" % verdicts_voc.get('B'),
    4042        else:
     43            info['next_level_id'] = "%s" % (int(level_id) + 100)
     44            info['next_session_id'] = next_session_id = "%02d" % (int(session_id)+1)
    4145            info['next_transition'] = "pay_school_fee"
    4246info['reasons'] = reasons
Note: See TracChangeset for help on using the changeset viewer.