Ignore:
Timestamp:
12 Dec 2007, 11:51:17 (17 years ago)
Author:
Henrik Bettermann
Message:

Payment.py: set payment status properly

upgradePayments.py: commit transactions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_epayment/upgradePayments.py

    r2923 r2925  
    5151sid = "xxx"
    5252count = 0
    53 commit_after = 5
    54 #commit_count = 0
     53commit_after = 10
     54commit_count = 0
    5555
    5656student_id = ''
     
    6363    payment['updatePayment'](student_record)
    6464    logger.info('upgraded student %s payment %s' % (student_record.id,payment.getId()))
    65     #if not count % commit_after:
    66     #    logger.info("committing %d total %d" % (commit_after,count))
    67         #commit_count += 1
    68         #if not commit_count % 2:
    69         #    break
     65    if not count % commit_after:
     66        logger.info("committing %d total %d" % (commit_after,count))
     67        commit_count += 1
     68        context.waeup_tool.doCommit()
     69        if not commit_count % 2:
     70            break
    7071logger.info("%d of %d upgraded" % (count,total))
Note: See TracChangeset for help on using the changeset viewer.