Changeset 1486 for WAeUP_SRP


Ignore:
Timestamp:
24 Feb 2007, 21:27:33 (18 years ago)
Author:
joachim
Message:

new version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_utilities/fixLevelForNewStudents.py

    r1485 r1486  
    4848query = Eq('level','100')
    4949res = aq_students(query)
    50 set_trace()
     50#set_trace()
    5151count = 0
     52commit_count = 0
    5253logger.info("started for %s students" % len(res))
    5354for sbrain in res:
     
    7475                                                        'current_verdict': 'N/A'})
    7576    count += 1
    76     if count > 10:
    77         break
     77    commit_count += 1
     78    if commit_count > 1000:
     79        context.waeup_tool.doCommit()
     80        logger.info("committing %s transactions total %s" % (commit_count,count))
     81        commit_count = 0
    7882    rwrite("%s: %s %s %s <br />" % (count,sbrain.id,entry_mode,level))
    7983rwrite("finished")
Note: See TracChangeset for help on using the changeset viewer.