Changeset 1348 for WAeUP_SRP/trunk/skins
- Timestamp:
- 25 Jan 2007, 17:06:21 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_epayment
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/epayment_cb.py
r1308 r1348 13 13 """ 14 14 import logging 15 logger = logging.getLogger('EPayment. ')15 logger = logging.getLogger('EPayment.CallBack') 16 16 import DateTime 17 17 … … 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 None31 26 32 27 resp_codes = (("x_RespDesc","resp_desc"), … … 41 36 pd[pdk] = request.get(rc) 42 37 context.getContent().edit(mapping=pd) 43 wftool.doActionFor(student,'pay_school_fee') 38 if pd['resp_desc'] == 'Approved Successful': 39 wftool.doActionFor(student,'pay_school_fee') 40 logger.info('"%s", "received valid callback"' % student_id) 41 else: 42 logger.info('"%s", "received no callback"' % student_id) 44 43 wftool.doActionFor(context,'close') 45 44 -
WAeUP_SRP/trunk/skins/waeup_epayment/pay_online.py
r1311 r1348 14 14 from urllib import urlencode 15 15 import logging 16 logger = logging.getLogger('EPayment. ')16 logger = logging.getLogger('EPayment.PayOnline') 17 17 import DateTime 18 18 request = context.REQUEST
Note: See TracChangeset for help on using the changeset viewer.