Changeset 2130 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
20 Aug 2007, 15:26:50 (17 years ago)
Author:
Henrik Bettermann
Message:

Joachim, please check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py

    r2059 r2130  
    8787except:
    8888    cost = "n/a"
    89    
     89
    9090if not hasattr(payments,p_id):
    9191    now = DateTime.DateTime()
     
    105105    if next_session == context.getSessionId()[-2:]:
    106106        wftool.doActionFor(student,'pay_school_fee')
    107     else:
     107    if int(session) <  6:
    108108        study_course = getattr(student,'study_course')
    109109        #wftool.doActionFor(study_course,'open')
    110110        study_course_doc = study_course.getContent()
    111         next_level = "%s" % (int(s_brain.level) + 100)
     111        if s_brain.verdict in ('A','B') or int(session) < 5:
     112            next_level = "%s" % (int(s_brain.level) + 100)
     113        else:
     114            next_level = s_brain.level
    112115        study_course_doc.edit(mapping= {'current_level': next_level,
    113116                                        'current_session': next_session,})
Note: See TracChangeset for help on using the changeset viewer.