Changeset 2051 for WAeUP_SRP/trunk
- Timestamp:
- 23 Jul 2007, 16:17:59 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentInfo.py
r2050 r2051 15 15 logger = logging.getLogger('Skins.getStudentBaseInfo') 16 16 from DateTime import DateTime 17 try: 18 from Products.zdb import set_trace 19 except: 20 def set_trace(): 21 pass 17 22 18 23 request = context.REQUEST … … 49 54 info['is_scratchcard_pmt'] = isc = payment.resp_code == 'SC' 50 55 if isc: 51 from Products.zdb import set_trace52 set_trace()53 56 p,b,n = str(payment.order_id).split('-') 54 57 batch_object = getattr(context.pins,"%s_%s" % (p,b),None) 55 if batch_object is None: 58 #set_trace() 59 if True or batch_object is None: 56 60 info['cost'] = "unknown" 57 61 else: 58 info['cost'] = "%6.2f N" % getattr(batch_object.getContent(),'cost',0.0) 62 cost = batch_object.getContent().cost 63 info['cost'] = "%6.2f N" % cost 64 #info['cost'] = "%6.2f N" % getattr(batch_object.getContent(),'cost',0.0) 59 65 info['is_interrupted'] = ii = payment.resp_code == '' 60 66 info['unknown_code'] = not (io or isc or ii)
Note: See TracChangeset for help on using the changeset viewer.