Changeset 3280 for WAeUP_SRP/base/skins/waeup_epayment/getPaymentInfo.py
- Timestamp:
- 7 Mar 2008, 09:11:23 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_epayment/getPaymentInfo.py
r2975 r3280 21 21 pass 22 22 23 # request = context.REQUEST24 # mtool = context.portal_membership25 # wf = context.portal_workflow26 # member = mtool.getAuthenticatedMember()27 # member_id = str(member)28 29 # if mtool.isAnonymousUser():30 # return None31 # info = {}32 # requested_id = context.getStudentId()33 # if requested_id and not context.isStaff() and member_id != requested_id:34 # logger.info('%s tried to access %s' % (member_id,requested_id))35 # return None36 # elif context.isStaff():37 # student_id = requested_id38 # else:39 # student_id = member_id40 23 info = context.waeup_tool.getAccessInfo(context) 41 24 student_id = info['student_id'] … … 44 27 45 28 46 #students_object = context.portal_url.getPortalObject().campus.students47 #student = getattr(students_object,student_id)48 29 49 30 res = context.students_catalog(id = student_id) … … 57 38 info['is_online_pmt'] = io = payment.resp_code in ('00','AP','IP') 58 39 info['is_scratchcard_pmt'] = isc = payment.resp_code == 'SC' 59 #set_trace()60 # if isc:61 # p,b,n = str(payment.order_id).split('-')62 # batch_object = getattr(context.pins,"%s_%s" % (p,b),None)63 # if batch_object is None:64 # info['cost'] = "unknown"65 # else:66 # cost = batch_object.getContent().cost67 # info['cost'] = "%6.2f N" % cost68 # #info['cost'] = "%6.2f N" % getattr(batch_object.getContent(),'cost',0.0)69 40 info['is_interrupted'] = ii = payment.resp_code == '' 70 41 info['unknown_code'] = not (io or isc or ii)
Note: See TracChangeset for help on using the changeset viewer.