Changeset 2135 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
21 Aug 2007, 08:11:16 (17 years ago)
Author:
Henrik Bettermann
Message:

revert changes of yesterday

Location:
WAeUP_SRP/trunk/skins/waeup_epayment
Files:
2 edited

Legend:

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

    r2133 r2135  
    8282        if next_session == context.getSessionId()[-2:]:
    8383            wftool.doActionFor(student,'pay_school_fee')
    84         if int(session) <  6:
     84        else:
    8585            study_course = getattr(student,'study_course')
    8686            try:
  • WAeUP_SRP/trunk/skins/waeup_epayment/pay_by_sc.py

    r2130 r2135  
    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     if int(session) <  6:
     107    else:
    108108        study_course = getattr(student,'study_course')
    109109        #wftool.doActionFor(study_course,'open')
    110110        study_course_doc = study_course.getContent()
    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
     111        next_level = "%s" % (int(s_brain.level) + 100)
    115112        study_course_doc.edit(mapping= {'current_level': next_level,
    116113                                        'current_session': next_session,})
Note: See TracChangeset for help on using the changeset viewer.