- Timestamp:
- 19 Mar 2007, 18:57:54 (18 years ago)
- 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" 2 2 ##bind container=container 3 3 ##bind context=context … … 23 23 setheader = request.RESPONSE.setHeader 24 24 import logging 25 logger = logging.getLogger(' reindexCourseCatalog')25 logger = logging.getLogger('Skins.reindexCourseCatalog') 26 26 27 27 def rwrite(s): … … 51 51 count_full = 0 52 52 commit_count = 0 53 logger.info(" reindexing of courses_catalog started for %s courses" % len(courses))53 logger.info("Reindexing of courses_catalog started for %s courses" % len(courses)) 54 54 for course_brain in courses: 55 55 course_doc = course_brain.getObject().getContent() … … 72 72 if commit_count > 1000: 73 73 context.waeup_tool.doCommit() 74 logger.info(" committing %s transactionstotal %s" % (commit_count,count))74 logger.info("Committing %s transactions, total %s" % (commit_count,count)) 75 75 rwrite("%s: committed %s <br />" % (count,commit_count)) 76 76 commit_count = 0 77 77 rwrite("finished") 78 logger.info(" finished reindexing %s courses" % count)78 logger.info("Reindexing finished (%s courses)" % count)
Note: See TracChangeset for help on using the changeset viewer.