Changeset 2303 for WAeUP_SRP/base/skins/waeup_utilities
- Timestamp:
- 2 Oct 2007, 14:55:23 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_utilities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_utilities/writePassports.py
r2300 r2303 45 45 46 46 starttime = DateTime.DateTime() 47 logger.info("Start writing %d Students Images" % len(students))47 logger.info("Start writing %d student passports" % len(students)) 48 48 count = 0 49 49 chunk = 100 … … 51 51 count += 1 52 52 if count and not count % chunk: 53 logger.info("written %d of %d Students Images " % (count,len(students))) 53 logger.info("written %d of %d student passports " % (count,len(students))) 54 context.waeup_tool.doCommit() 54 55 context.waeup_tool.movePassportToFS(student.id) -
WAeUP_SRP/base/skins/waeup_utilities/writeStudentImages.py
r2292 r2303 16 16 def set_trace(): 17 17 pass 18 18 19 19 mtool = context.portal_membership 20 20 member = mtool.getAuthenticatedMember() 21 21 if str(member) not in ('admin','joachim'): 22 22 return 23 24 23 24 25 25 import logging 26 26 import DateTime … … 38 38 students = context.students_catalog() 39 39 starttime = DateTime.DateTime() 40 logger.info("Start writing %d Students Images" % len(students))40 logger.info("Start writing %d student images" % len(students)) 41 41 count = 0 42 42 chunk = 100 … … 44 44 count += 1 45 45 if count and not count % chunk: 46 logger.info("written %d of %d Students Images " % (count,len(students))) 46 logger.info("written %d of %d student images " % (count,len(students))) 47 context.waeup_tool.doCommit() 47 48 context.waeup_tool.moveImagesToFS(student.id)
Note: See TracChangeset for help on using the changeset viewer.