- Timestamp:
- 6 Dec 2007, 15:34:38 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/fceokene/waeup_custom/getPaymentsFolderInfo.py
r2834 r2871 36 36 import DateTime 37 37 request = context.REQUEST 38 students = context.portal_url.getPortalObject().campus.students38 #students = context.portal_url.getPortalObject().campus.students 39 39 student_id = context.getStudentId() 40 40 if student_id is None: 41 41 return context.REQUEST.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url()) 42 student = getattr(students,student_id)43 s _brain = context.students_catalog(id = student_id)[0]44 42 #student = getattr(students,student_id) 43 student_record = context.students_catalog.getRecordByKey(student_id) 44 context['updatePayments']() 45 45 payments = [] 46 #from Products.zdb import set_trace;set_trace()47 46 48 47 info = {} 49 48 is_so = info['is_so'] = context.isSectionOfficer() 50 49 is_student = info['is_student'] = context.isStudent() 51 info['student_name'] = s _brain.name50 info['student_name'] = student_record.name 52 51 info['query_url'] = "https://webpay.interswitchng.com/paydirect/services/TransactionQueryURL.aspx" 53 review_state = info['review_state'] = s _brain.review_state54 parttime = s _brain.mode and s_brain.mode.endswith('_pt')55 fulltime = s _brain.mode and s_brain.mode.endswith('_ft')52 review_state = info['review_state'] = student_record.review_state 53 parttime = student_record.mode and student_record.mode.endswith('_pt') 54 fulltime = student_record.mode and student_record.mode.endswith('_ft') 56 55 57 56 #if review_state == 'cleared_and_validated' or (parttime and review_state == 'returning'): … … 60 59 # sc_payment = True 61 60 62 session = s _brain.session63 next_info = context.getNextInfo(s _brain)61 session = student_record.session 62 next_info = context.getNextInfo(student_record) 64 63 info['next_session'] = next_info['next_session_id'] 65 64 info['next_session_str'] = next_info['next_session_str'] … … 73 72 info['prod_id'] = '83' 74 73 75 info['student_name'] = s _brain.name74 info['student_name'] = student_record.name 76 75 payments_path = "%s/campus/students/%s/payments" % (context.portal_url.getPortalPath(),student_id) 77 76 sos = context.portal_catalog(container_path=payments_path)
Note: See TracChangeset for help on using the changeset viewer.