Changeset 2737


Ignore:
Timestamp:
22 Nov 2007, 09:53:21 (17 years ago)
Author:
Henrik Bettermann
Message:

move really all (provided that there are no level objects of students < school_fee_paid)

File:
1 edited

Legend:

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

    r2736 r2737  
    2727logger = logging.getLogger('Skins.moveCourseResults')
    2828from Products.AdvancedQuery import Eq, Between, Le,In
    29 aq_results = context.course_results.evalAdvancedQuery
     29aq_results = context.course_results.evalAdvancedQuery 
    3030aq_students = context.students_catalog.evalAdvancedQuery
    3131students = context.portal_url.getPortalObject().campus.students
     
    4040#logger.info('')
    4141
    42 brains = aq_students(In('review_state',('courses_registered','courses_validated')))
     42brains = aq_students(In('review_state',('school_fee_paid','courses_registered','courses_validated')))
    4343total = len(brains)
    4444logger.info("found %d students" % (total))
     
    6161        continue
    6262    if not results:
     63        if not count % 100:
     64            logger.info("%s students searched" % (count))
    6365        continue
    6466        #rwrite('no result objects in %s/study_course/%s' % (brain.id,brain.level))
Note: See TracChangeset for help on using the changeset viewer.