Changeset 2464 for WAeUP_SRP


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

fix view

Location:
WAeUP_SRP/base/skins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_epayment/payments_view.pt

    r2461 r2464  
    7878            You are not able to pay your schoolfee because: <br />
    7979            <ul>
    80               <li tal:repeat="reason info/reasons" />
     80              <span tal:repeat="reason info/reasons" tal:omit-tag="">
     81                <li tal:content="reason" />
     82              </span>
    8183            </ul>
    8284          </div>
  • 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.