Changeset 5205 for WAeUP_SRP


Ignore:
Timestamp:
25 May 2010, 17:30:20 (15 years ago)
Author:
Henrik Bettermann
Message:

avoid double payments

Location:
WAeUP_SRP/trunk/skins
Files:
2 edited

Legend:

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

    r3256 r5205  
    4646next_previous_verdict = next_info['next_previous_verdict']
    4747
     48if not next_info['payment_allowed']:
     49    logger.info('%s called pay_by_sc manually' % student_id)     
     50    return 'Do not call this form manually!'
     51
    4852validate = request.has_key("cpsdocument_create_button")
    4953res,psm,ds = lt.renderLayout(layout_id= 'student_schoolfee',
     
    5761                      commit = False,
    5862                      )
     63                     
    5964if psm == 'invalid':
    6065    psm = 'Please correct your errors!'
  • WAeUP_SRP/trunk/skins/waeup_student/getNextInfo.py

    r4554 r5205  
    2121
    2222reasons = ''
     23info['payment_allowed'] = False
    2324
    2425session_id = student_brain.session
     
    4041    info['next_transition'] = "pay_school_fee"
    4142    info['next_verdict'] = ''
     43    info['payment_allowed'] = True
    4244elif review_state == 'returning' and has_verdict and has_level and has_session:
     45    info['payment_allowed'] = True
    4346    info['next_session_id'] = next_session_id = "%02d" % (int(session_id)+1)
    4447    if int(session_id) > 4:
Note: See TracChangeset for help on using the changeset viewer.