Changeset 1158 for WAeUP_SRP/trunk/skins
- Timestamp:
- 30 Dec 2006, 16:58:14 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py
r1151 r1158 38 38 student = getattr(students,str(member)) 39 39 if request.has_key('email'): 40 context.waeup_tool.makeStudentData(str(member),email=request.get("email")) 40 context.waeup_tool.makeStudentData(str(member), 41 email=request.get("email"), 42 phone_nr=request.get("phone_nr"), 43 ) 41 44 student_app = getattr(student,'application',None) 42 45 if student_app is None: -
WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py
r1147 r1158 10 10 # $Id$ 11 11 """ 12 return Info about the current Student 12 pay online 13 13 """ 14 14 import logging … … 24 24 25 25 student = getattr(students,student_id) 26 sbrain = context.students_catalog(id=student_id)[0] 27 res = context.portal_catalog(portal_type="Certificate", 28 id = sbrain.course) 29 if not res: 30 return None 31 sfc = res[0].getObject().getContent().school_fee_code 26 32 info = {} 27 33 info['callback_url'] = "%s/epayment_cb" % student.absolute_url() 34 info['payment_type_code'] = sfc 35 info['payment_type_description'] = "Schoolfee %s for 2006/2007 Session" % sfc 36 info['payment_bill_to'] = sbrain.name 37 info['payment_ship_to'] = "University of Benin" 38 info['student_id'] = student_id 39 info['student_name'] = sbrain.name 40 info['student_email'] = sbrain.email 41 info['order_id'] = "%s%s" % (student_id[1:],DateTime.DateTime().strftime("%d%m%y%H%M%S")) 42 info['amount'] = "75000" 43 return context.wema_form(info=info) -
WAeUP_SRP/trunk/skins/waeup_epayment/wema_form.pt
r1147 r1158 12 12 <tr> 13 13 <input name="x_PaymentCode" type="hidden" 14 tal:attributes=" info/payment_type_code" />14 tal:attributes="value info/payment_type_code" /> 15 15 <input name="x_PaymentDesc" type="hidden" 16 tal:attributes=" info/payment_type_description" />16 tal:attributes="value info/payment_type_description" /> 17 17 <td >Description</td> 18 18 <td tal:content="info/payment_type_description"></td> … … 20 20 <tr> 21 21 <input name="x_Billto" type="hidden" 22 tal:attributes=" info/payment_billto" />22 tal:attributes="value info/payment_bill_to" /> 23 23 <input name="x_Shipto" type="hidden" 24 tal:attributes=" info/payment_shipto" />24 tal:attributes="value info/payment_ship_to" /> 25 25 <input name="x_PayersID" type="hidden" 26 tal:attributes=" info/student_id" />26 tal:attributes="value info/student_id" /> 27 27 <input name="x_PayerName" type="hidden" 28 tal:attributes=" info/student_name" />28 tal:attributes="value info/student_name" /> 29 29 <input name="x_PayerEmail" type="hidden" 30 tal:attributes=" info/student_email" />30 tal:attributes="value info/student_email" /> 31 31 <input name="x_OrderID" type="hidden" 32 tal:attributes=" info/order_id" />33 <td tal:content="info/payment_bill to"></td>32 tal:attributes="value info/order_id" /> 33 <td tal:content="info/payment_bill_to"></td> 34 34 </tr> 35 35 <tr> 36 36 <input name="x_amt" type="hidden" 37 tal:attributes=" info/amount" />37 tal:attributes="value info/amount" /> 38 38 <td >Amount 39 39 </td> -
WAeUP_SRP/trunk/skins/waeup_student/createStudentFT.py
r1151 r1158 44 44 student_brain.Lastname) 45 45 ) 46 return "Student MatricelNo %s and %s created" % (matric_no,sid) 46 return "Student MatricelNo %s and %s Jamb %s created" % (matric_no, 47 sid, 48 student_brain.Entryregno) 47 49 -
WAeUP_SRP/trunk/skins/waeup_student/set_access_data.py
r1154 r1158 42 42 elif psm == 'valid': 43 43 pass 44 #jamb_reg_no = ds.get('jamb_reg_no')45 #r = context.returning_import(matric_no = matric_no)46 #if 0 andr and r[0].Entryregno != jamb_reg_no or not r:47 #psm = "Your Jamb Registration Nr is wrong"48 #return context.set_access_data_form(rendered = res,49 #psm = psm,50 #firstlayout = True,51 #lastlayout = True,52 #ds = ds,53 #)44 jamb_reg_no = ds.get('jamb_reg_no') 45 r = context.returning_import(matric_no = matric_no) 46 if r and r[0].Entryregno != jamb_reg_no or not r: 47 psm = "Your Jamb Registration Nr is wrong" 48 return context.set_access_data_form(rendered = res, 49 psm = psm, 50 firstlayout = True, 51 lastlayout = True, 52 ds = ds, 53 ) 54 54 ## from Products.zdb import set_trace;set_trace() 55 55 password = REQUEST.get('widget__password')
Note: See TracChangeset for help on using the changeset viewer.