Changeset 2931 for WAeUP_SRP


Ignore:
Timestamp:
13 Dec 2007, 06:32:18 (17 years ago)
Author:
Henrik Bettermann
Message:

log only if payment has been updated

Location:
WAeUP_SRP/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Payment.py

    r2929 r2931  
    8080        wftool = self.portal_workflow
    8181        d = {}
    82         d['key'] = self.getId()
     82        #d['key'] = self.getId()
    8383        d['amount'] = doc.amount
    8484        category = ''
     
    9292            sp = doc.type_description.rfind('/')
    9393            d['session_id'] = doc.type_description[sp-2:sp]
    94             d['category'] = category # zb. schoolfee           
     94            d['category'] = category # zb. schoolfee
    9595        while True:
    9696            if doc.resp_code == "SC":
     
    133133        if review_state == "closed":
    134134            wftool.doActionFor(self.aq_parent,'close')
     135        logger.info('updated student %s payment %s' % (student_record.id,self.getId()))
    135136
    136137InitializeClass(Payment)
  • WAeUP_SRP/base/skins/waeup_epayment/upgradePayments.py

    r2927 r2931  
    6262        student_record = context.students_catalog.getRecordByKey(student_id)
    6363    payment['updatePayment'](student_record)
    64     logger.info('upgraded student %s payment %s' % (student_record.id,payment.getId()))
     64    #logger.info('upgraded student %s payment %s' % (student_record.id,payment.getId()))
    6565    if not count % commit_after:
    6666        logger.info("committing %d total %d" % (commit_after,count))
Note: See TracChangeset for help on using the changeset viewer.