Changeset 1243 for WAeUP_SRP/trunk/skins
- Timestamp:
- 8 Jan 2007, 17:39:17 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/epayment_cb.py
r1229 r1243 37 37 ) 38 38 pd = {} 39 from Products.zdb import set_trace;set_trace()39 #from Products.zdb import set_trace;set_trace() 40 40 for rc,pdk in resp_codes: 41 41 pd[pdk] = request.get(rc) -
WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py
r1235 r1243 24 24 student = getattr(students,student_id) 25 25 sbrain = context.students_catalog(id=student_id)[0] 26 res = context.portal_catalog(portal_type="Certificate", 27 id = sbrain.course) 28 if not res: 29 logger.info('"%s","certificate not found", "%s"' % (student_id,course)) 30 sfc = "ART" 31 else: 32 sfc = res[0].getPath().split('/')[-4] 26 amount,description = context.getSchoolFee(sbrain.faculty) 27 ##res = context.portal_catalog(portal_type="Certificate", 28 ## id = sbrain.course) 29 ## 30 ##if not res: 31 ## logger.info('"%s","certificate not found", "%s"' % (student_id,course)) 32 ## sfc = "ART" 33 ##else: 34 ## sfc = res[0].getPath().split('/')[-4] 33 35 info = {} 34 info['amount'] = "75000"35 info['type_code'] = s fc36 info['type_description'] = "Schoolfee %s for 2006/2007 Session" % sfc36 info['amount'] = amount 37 info['type_code'] = sbrain.faculty 38 info['type_description'] = description 37 39 info['pay_bill_to'] = sbrain.name 38 40 info['pay_ship_to'] = "University of Benin" … … 41 43 info['student_email'] = sbrain.email 42 44 now = DateTime.DateTime() 43 info[' pay_date'] = now.strftime("%d%m%y%H%M%S")45 info['date'] = now 44 46 order_id = info['order_id'] = "%d" % int(now.timeTime()*1000) 45 47 info['order_id'] = "%s%s" % (student_id[1:],order_id) … … 48 50 payments = getattr(student,'payments') 49 51 d = {} 50 d['Title'] = ' OnlinePayments'52 d['Title'] = 'Payments' 51 53 payments.getContent().edit(mapping=d) 54 wftool.doActionFor(payments,'open') 52 55 else: 53 56 payments = getattr(student,'payments') 54 57 p_id = "p%s" % order_id 55 58 payments.invokeFactory('Payment', p_id) 56 #from Products.zdb import set_trace;set_trace()57 59 payment = getattr(payments,p_id) 58 60 d = {} 59 61 d.update(info) 60 d['Title'] = "%(type_description)s %(pay_date) %(amount)s N" % info 62 #from Products.zdb import set_trace;set_trace() 61 63 payment.getContent().edit(mapping=d) 62 64 info['callback_url'] = "%s/payments/%s/epayment_cb" % (student.absolute_url(),p_id) 63 if context.portal_url().find('uniben-demo.waeup.org') >-1: 65 if context.portal_url().find('uniben-demo.waeup.org') >-1 or\ 66 context.portal_url().find('uniben.waeup.org') >-1: 64 67 info['action'] = "http://www.wemaonlinepayments.biz/payment.aspx" 65 68 else: -
WAeUP_SRP/trunk/skins/waeup_epayment/payments_view.pt
r1238 r1243 23 23 </metal:block> 24 24 <metal:main fill-slot="main"> 25 <table class="contentListing" width="100%"> 25 <div> 26 <a href="" tal:attributes="href string:${context/absolute_url}/pay_online">Pay Your Schoolfee online</a> 27 </div> 28 <table class="contentListing" width="100%"> 26 29 <tr tal:repeat="row rows" 27 30 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> -
WAeUP_SRP/trunk/skins/waeup_epayment/simulate_callback.py
r1235 r1243 16 16 args['x_RespCode'] = '00' 17 17 args['x_CardNum'] = '0114' 18 args['x_ApprAmt'] = '75000.00'18 args['x_ApprAmt'] = REQUEST.get('x_amt') 19 19 20 20 from urllib import urlencode -
WAeUP_SRP/trunk/skins/waeup_epayment/wema_form.pt
r1235 r1243 48 48 Amount: 49 49 </td> 50 <td> Naira <span tal:content="info/amount" /> </td>50 <td> Naira <span tal:content="info/amount" />.00</td> 51 51 </tr> 52 52 </table> -
WAeUP_SRP/trunk/skins/waeup_student/getStudentFolderInfo.py
r1214 r1243 26 26 info = {} 27 27 member_id = str(member) 28 #from Products.zdb import set_trace 29 #set_trace() 28 #from Products.zdb import set_trace;set_trace() 30 29 is_student = info['is_student'] = context.isStudent() 31 30 is_staff = info['is_staff'] = context.isStaff() … … 68 67 'StudentPersonal': 'personal_view', 69 68 'StudentStudyCourse': 'study_course_view', 69 'PaymentsFolder': 'payments_view', 70 70 'StudentPume': 'pume_view', 71 71 } -
WAeUP_SRP/trunk/skins/waeup_student/student_index.py
r1238 r1243 26 26 elif context.portal_type == 'StudentClearance': 27 27 return context.clearance_view() 28 elif context.portal_type == 'PaymentsFolder':29 return context.payments_view()30 28 elif context.portal_type == 'Student': 31 29 return redirect("%s/student_view" % context.absolute_url()) 32 30 return redirect("%s/waeup_document_view" % context.absolute_url()) 33 31 if context.isStudent(): 32 if context.portal_type == 'PaymentsFolder': 33 return context.payments_view() 34 34 students_url = "%s/campus/students" % (context.portal_url()) 35 35 id = str(member)
Note: See TracChangeset for help on using the changeset viewer.