- Timestamp:
- 19 Mar 2007, 18:57:54 (18 years ago)
- 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" 2 2 ##bind container=container 3 3 ##bind context=context … … 23 23 setheader = request.RESPONSE.setHeader 24 24 import logging 25 logger = logging.getLogger(' fixLevelForNewStudents')25 logger = logging.getLogger('Skins.fixLevelForNewStudents') 26 26 27 27 def rwrite(s): … … 53 53 count_full = 0 54 54 commit_count = 0 55 logger.info(" started for %s students" % len(res))55 logger.info("Started for %s students" % len(res)) 56 56 to_change = {} 57 57 for sbrain in res: … … 92 92 if commit_count > 1000: 93 93 context.waeup_tool.doCommit() 94 logger.info(" committing %s transactionstotal %s" % (commit_count,count))94 logger.info("Committing %s transactions, total %s" % (commit_count,count)) 95 95 commit_count = 0 96 96 rwrite("%s: %s %s %s <br />" % (count,sbrain.id,entry_mode,level)) … … 98 98 students_cat.modifyRecord(**to_change[entry]) 99 99 rwrite("finished") 100 logger.info(" finished %s students" % count)100 logger.info("Finished %s students" % count)
Note: See TracChangeset for help on using the changeset viewer.