Changeset 2907
- Timestamp:
- 10 Dec 2007, 14:18:55 (17 years ago)
- Location:
- WAeUP_SRP/base
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Payment.py
r2905 r2907 90 90 p_type = "sc" 91 91 p_status = "paid" 92 if type(doc.order_id) != type(''): 93 d['order_id'] = str(doc.order_id) 92 94 break 93 95 if doc.resp_code in ("00","IP","AP"): … … 108 110 d['item'] = getattr(student_record,'course','') 109 111 d['status'] = p_status 110 d['resp_approved_amount'] = getattr(doc,'resp_approved_amount',None)111 d['resp_pay_reference'] = doc.resp_pay_reference112 d['resp_desc'] = doc.resp_desc113 d['resp_code'] = doc.resp_code114 d['resp_card_num'] = doc.resp_card_num115 d['date'] = getattr(doc,'date',None)112 # d['resp_approved_amount'] = getattr(doc,'resp_approved_amount',None) 113 # d['resp_pay_reference'] = doc.resp_pay_reference 114 # d['resp_desc'] = doc.resp_desc 115 # d['resp_code'] = doc.resp_code 116 # d['resp_card_num'] = doc.resp_card_num 117 # d['date'] = getattr(doc,'date',None) 116 118 117 119 review_state = wftool.getInfoFor(self.aq_parent,'review_state',None) -
WAeUP_SRP/base/WAeUPTables.py
r2904 r2907 1470 1470 student_id = rpl[-4] 1471 1471 data['student_id'] = student_id 1472 modified = False 1472 1473 try: 1473 1474 self.modifyRecord(**data) 1475 modified = True 1474 1476 except KeyError: 1475 self.addRecord(**data)1476 except:1477 1477 logger = logging.getLogger('WAeUPTables.PaymentsCatalog.%s' % self.__name__) 1478 logger.info("could not add or modify entry for %(order_id)s" % data) 1479 ###) 1478 logger.info("could not modify entry for %(student_id)s with %(order_id)s" % data) 1479 if not modified: 1480 try: 1481 self.addRecord(**data) 1482 except: 1483 logger = logging.getLogger('WAeUPTables.PaymentsCatalog.%s' % self.__name__) 1484 logger.info("could not add or modify entry for %(student_id)s with %(order_id)s" % data) 1485 ###) 1480 1486 1481 1487
Note: See TracChangeset for help on using the changeset viewer.