Ignore:
Timestamp:
2 Oct 2007, 14:55:23 (17 years ago)
Author:
Henrik Bettermann
Message:

commit after 100 students

Location:
WAeUP_SRP/base/skins/waeup_utilities
Files:
2 edited

Legend:

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

    r2300 r2303  
    4545
    4646starttime = DateTime.DateTime()
    47 logger.info("Start writing %d Students Images" % len(students))
     47logger.info("Start writing %d student passports" % len(students))
    4848count = 0
    4949chunk = 100
     
    5151    count += 1
    5252    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()
    5455    context.waeup_tool.movePassportToFS(student.id)
  • WAeUP_SRP/base/skins/waeup_utilities/writeStudentImages.py

    r2292 r2303  
    1616    def set_trace():
    1717        pass
    18        
     18
    1919mtool = context.portal_membership
    2020member = mtool.getAuthenticatedMember()
    2121if str(member) not in ('admin','joachim'):
    2222    return
    23    
    24            
     23
     24
    2525import logging
    2626import DateTime
     
    3838students = context.students_catalog()
    3939starttime = DateTime.DateTime()
    40 logger.info("Start writing %d Students Images" % len(students))
     40logger.info("Start writing %d student images" % len(students))
    4141count = 0
    4242chunk = 100
     
    4444    count += 1
    4545    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()
    4748    context.waeup_tool.moveImagesToFS(student.id)
Note: See TracChangeset for help on using the changeset viewer.