Ignore:
Timestamp:
9 May 2007, 04:39:06 (18 years ago)
Author:
Henrik Bettermann
Message:

count also 'session fields already set'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_utilities/setCurrentSession.py

    r1759 r1760  
    1313"""
    1414import logging
    15 logger = logging.getLogger('Skins.set_current_session')
     15logger = logging.getLogger('Skins.setCurrentSession')
    1616
    1717request = REQUEST
     
    4343count = 0
    4444not_count = 0
     45not_count2 = 0
    4546#set_trace()
    4647for student in all:
    4748    c += 1
    4849    if c > 1000:
    49         logger.info('%s set %d not_found %d ' % (member,count,not_count))
     50        logger.info('%s set %d, not found %d, session fields already set %d' % (member,count,not_count,not_count2))
    5051        c = 0
    5152        context.waeup_tool.doCommit()
     
    6162            not_count += 1
    6263            #rwrite("%s/study_course not found" % student.id)
     64    else:
     65        not_count2 +=1
    6366
    6467logger.info('%s finished to set %d of %d ' % (member,count,len(all)))
Note: See TracChangeset for help on using the changeset viewer.