Ignore:
Timestamp:
19 Mar 2007, 18:57:54 (18 years ago)
Author:
uli
Message:

Merged current trunk into uli-branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/branches/uli/skins/waeup_utilities/fixLevelForNewStudents.py

    r1491 r1593  
    1 ## Script (Python) "search_pins"
     1## Script (Python) "fixLevelForNewStudents"
    22##bind container=container
    33##bind context=context
     
    2323setheader = request.RESPONSE.setHeader
    2424import logging
    25 logger = logging.getLogger('fixLevelForNewStudents')
     25logger = logging.getLogger('Skins.fixLevelForNewStudents')
    2626
    2727def rwrite(s):
     
    5353count_full = 0
    5454commit_count = 0
    55 logger.info("started for %s students" % len(res))
     55logger.info("Started for %s students" % len(res))
    5656to_change = {}
    5757for sbrain in res:
     
    9292    if commit_count > 1000:
    9393        context.waeup_tool.doCommit()
    94         logger.info("committing %s transactions total %s" % (commit_count,count))
     94        logger.info("Committing %s transactions, total %s" % (commit_count,count))
    9595        commit_count = 0
    9696    rwrite("%s: %s %s %s <br />" % (count,sbrain.id,entry_mode,level))
     
    9898    students_cat.modifyRecord(**to_change[entry])
    9999rwrite("finished")
    100 logger.info("finished  %s students" % count)
     100logger.info("Finished  %s students" % count)
Note: See TracChangeset for help on using the changeset viewer.