Changeset 3206


Ignore:
Timestamp:
23 Feb 2008, 22:59:10 (17 years ago)
Author:
Henrik Bettermann
Message:

2 old fixes (in custom)

Location:
WAeUP_SRP/base/skins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_accommodation/change_bed.py

    r3170 r3206  
    8484list = []
    8585to_modify = []
    86 for r in records[1:100]:
     86logger.info('started without student context')
     87for r in records:
    8788    info = context.getAccommodationInfo(r.student)
    8889    sbt = info.get('student_status',None)
     
    9899    #to_modify.append((r.bed,r.student,info['student_status'],info['acco_doc']))
    99100    logger.info(message)
     101logger.info('finished')
    100102
    101103return "\r".join(list)
  • WAeUP_SRP/base/skins/waeup_utilities/purgeCourseResultsObjects.py

    r3128 r3206  
    2727logger = logging.getLogger('Skins.purgeCourseResultsObjects')
    2828from Products.AdvancedQuery import Eq, Between, Le,In
    29 aq_results = context.course_results.evalAdvancedQuery 
     29aq_results = context.course_results.evalAdvancedQuery
    3030aq_portal = context.portal_catalog_real.evalAdvancedQuery
    3131#aq_students = context.students_catalog.evalAdvancedQuery
     
    7272    if moved and not moved % commit_after:
    7373        context.waeup_tool.doCommit()
    74         logger.info("Committing %s transactions, total %s" % (commit_after,count))
     74        logger.info("Committing %s transactions, total %s" % (commit_after,len(to_move)))
    7575        # cocount += 1
    7676        # if cocount > 2:
Note: See TracChangeset for help on using the changeset viewer.