Changeset 3449 for WAeUP_SRP/base/skins


Ignore:
Timestamp:
18 Apr 2008, 08:08:09 (17 years ago)
Author:
joachim
Message:

commit after commit_after

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_utilities/ti_531_resolve.py

    r3444 r3449  
    3838found = 0
    3939not_deleted = 0
    40 commit_after = 100
     40commit_after = 200
    4141logger.info('start')
    4242students = context.students_catalog()
     
    4747    student_id = pume.getPath().split('/')[-2]
    4848    student_object = getattr(students_folder,student_id)
     49    if count and not count % commit_after:
     50        context.waeup_tool.doCommit()
     51        logger.info("commiting %d transaction of %d" % (commit_after,count))
    4952    try:
    5053        getattr(student_object,manage_delObjects,'')
Note: See TracChangeset for help on using the changeset viewer.