Changeset 2926 for WAeUP_SRP


Ignore:
Timestamp:
12 Dec 2007, 21:50:08 (17 years ago)
Author:
Henrik Bettermann
Message:

second trial to fix payment records and objects

Location:
WAeUP_SRP/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Payment.py

    r2925 r2926  
    7474    def updatePayment(self,student_record,force=None):
    7575        doc = self.getContent()
    76         if getattr(doc,'status',None) and not force:
     76        status = getattr(doc,'status',None)
     77        if status and status != 'started' and not force:
    7778            return
    7879        wftool = self.portal_workflow
     
    104105            if doc.resp_code in ("00","IP","AP"):
    105106                p_status = "paid"
    106                 break
    107107            elif doc.resp_code == '':
    108108                p_status = "started"
     
    110110                p_status = "failed"
    111111            # don't set order_id it is already correct
    112 
    113112            break
    114113        d['type'] = p_type  # scratch card
  • WAeUP_SRP/base/WAeUPTables.py

    r2911 r2926  
    14681468            modified = True
    14691469        except KeyError:
    1470             logger = logging.getLogger('WAeUPTables.PaymentsCatalog.%s' % self.__name__)
    1471             logger.info("could not modify entry for %(student_id)s with %(order_id)s" % data)
     1470            #logger = logging.getLogger('WAeUPTables.PaymentsCatalog.%s' % self.__name__)
     1471            #logger.info("could not modify entry for %(student_id)s with %(order_id)s" % data)
     1472            pass
    14721473        if not modified:
    14731474            try:
Note: See TracChangeset for help on using the changeset viewer.