Changeset 2884 for WAeUP_SRP/base/skins


Ignore:
Timestamp:
8 Dec 2007, 15:30:09 (17 years ago)
Author:
Henrik Bettermann
Message:

prepare to be run on uniben tonight

File:
1 edited

Legend:

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

    r2861 r2884  
    3535response = request.RESPONSE
    3636setheader = request.RESPONSE.setHeader
    37 def rwrite(s):
    38     response.setHeader('Content-type','text/html; charset=ISO-8859-15')
    39     response.write("%s<br>\n\r" % s)
     37#def rwrite(s):
     38#    response.setHeader('Content-type','text/html; charset=ISO-8859-15')
     39#    response.write("%s<br>\n\r" % s)
    4040
    4141count = 1
     
    7373                logger.info("committing %d total %d" % (commit_after,delete_count_student))
    7474            delete_count_student += 1
    75             msg = "%d: found %d payments to remove %d to keep for %s" % (count,
     75            msg = "(%d) found %d payments to remove, %d to keep for %s" % (count,
    7676                                                                    len(to_del),
    7777                                                                    student_keep_count,
     
    8787                                                                  sid,
    8888                                                                  review_state)
    89             rwrite( msg)
     89            #rwrite( msg)
    9090        sid = p_sid
    9191        count += 1
     
    113113        keep_count += 1
    114114        student_keep_count += 1
    115        
     115
    116116logger.info("%d of %d to purge %d to keep" % (delete_count,total,keep_count))
Note: See TracChangeset for help on using the changeset viewer.