Changeset 3227


Ignore:
Timestamp:
25 Feb 2008, 22:25:38 (17 years ago)
Author:
Henrik Bettermann
Message:

fix URL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/fceokene/waeup_custom/getPaymentsFolderInfo.py

    r3226 r3227  
    7777
    7878info['student_name'] = student_record.name
    79 payments_path = "%s/campus/students/%s/payments" % (context.portal_url.getPortalPath(),student_id)
     79payments_path = "%s/campus/students/%s/payments" % (context.portal_url(),student_id)
    8080payments = []
    8181payment_records = aq_payments(Eq('student_id',student_id) & Eq('session_id',student_record.session))
     
    8484for payment in payment_records:
    8585    if payment.status == "paid":
    86         paid_fees += "%s_%s" % (payment.type,payment.session_id), 
     86        paid_fees += "%s_%s" % (payment.type,payment.session_id),
    8787for payment in payment_records:
    8888    row = {}
     
    9393                                                        payment.date.strftime("%d/%m/%y %H:%M:%S"))
    9494    url = row['url'] = "%s/p%s" % (payments_path,payment.order_id[6:])
    95     row['is_requeryable'] = "%s_%s" % (payment.type,payment.session_id) not in paid_fees
     95    row['is_requeryable'] = "%s_%s" % (payment.type,payment.session_id) not in paid_fees or str(member) in ('admin',)
    9696    row['is_approvable'] = is_so and row['is_requeryable']
    97     row['resp_desc'] = payment.resp_desc or payment.status
     97    row['resp_desc'] = payment.resp_desc or (row['is_requeryable'] and 'Payment Process Interrupted')
    9898    row['trans_ref'] = payment.order_id
    9999    if row['is_requeryable']:
Note: See TracChangeset for help on using the changeset viewer.