Changeset 3159


Ignore:
Timestamp:
13 Feb 2008, 20:13:28 (17 years ago)
Author:
Henrik Bettermann
Message:

tse tse tse

Wie konnte das mit den vielen set_trace() funktionieren?

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

Legend:

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

    r3155 r3159  
    1 ## Script (Python) "ti_71fc_resolve"
     1## Script (Python) "ti_474_resolve"
    22##bind container=container
    33##bind context=context
     
    2525import logging
    2626import DateTime
    27 logger = logging.getLogger('Skins.ti_71fc_resolve')
     27logger = logging.getLogger('Skins.ti_474_resolve')
    2828from Products.AdvancedQuery import Eq, Between, Le,In
    2929aq_students = context.students_catalog.evalAdvancedQuery
     
    4242course_results_to_change = []
    4343logger.info('start')
    44 set_trace()
     44#set_trace()
    4545for result in course_results():
    4646    student_id,level_id,code = result.key.split('|')
     
    5656        course_results_to_change += d,
    5757logger.info('found %d correctable results' % len(course_results_to_change))
    58 set_trace()
     58#set_trace()
    5959for result in course_results_to_change:
    6060    try:
    6161        course_results.modifyRecord(**result)
    62         logger.info('%(student_id)s correcting %(key)s' % result)
     62        logger.info('correcting %(key)s' % result)
    6363    except KeyError:
    64         set_trace()
    65         logger.info('%(student_id)s %(key)s not found there' % result)
    66    
     64        #set_trace()
     65        logger.info('%(key)s not found there' % result)
     66
    6767logger.info('finished')
  • WAeUP_SRP/base/skins/waeup_utilities/ti_71fc_resolve_fix.py

    r3158 r3159  
    1 ## Script (Python) "ti_71fc_resolve"
     1## Script (Python) "ti_71fc_resolve_fix"
    22##bind container=container
    33##bind context=context
     
    2525import logging
    2626import DateTime
    27 logger = logging.getLogger('Skins.ti_71fc_resolve')
     27logger = logging.getLogger('Skins.ti_71fc_resolve_fix')
    2828from Products.AdvancedQuery import Eq, Between, Le,In
    2929aq_students = context.students_catalog.evalAdvancedQuery
     
    6060    logger.info('%(student_id)s deleting %(old_key)s' % result)
    6161    course_results.deleteRecord(result['old_key'])
    62    
     62
    6363logger.info('finished')
Note: See TracChangeset for help on using the changeset viewer.