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/reindexCoursesCatalog.py

    r1499 r1593  
    1 ## Script (Python) "search_pins"
     1## Script (Python) "reindexCourseCatalog"
    22##bind container=container
    33##bind context=context
     
    2323setheader = request.RESPONSE.setHeader
    2424import logging
    25 logger = logging.getLogger('reindexCourseCatalog')
     25logger = logging.getLogger('Skins.reindexCourseCatalog')
    2626
    2727def rwrite(s):
     
    5151count_full = 0
    5252commit_count = 0
    53 logger.info("reindexing of courses_catalog started for %s courses" % len(courses))
     53logger.info("Reindexing of courses_catalog started for %s courses" % len(courses))
    5454for course_brain in courses:
    5555    course_doc = course_brain.getObject().getContent()
     
    7272    if commit_count > 1000:
    7373        context.waeup_tool.doCommit()
    74         logger.info("committing %s transactions total %s" % (commit_count,count))
     74        logger.info("Committing %s transactions, total %s" % (commit_count,count))
    7575        rwrite("%s: committed %s <br />" % (count,commit_count))
    7676        commit_count = 0
    7777rwrite("finished")
    78 logger.info("finished  reindexing %s courses" % count)
     78logger.info("Reindexing finished (%s courses)" % count)
Note: See TracChangeset for help on using the changeset viewer.