Changeset 3159
- Timestamp:
- 13 Feb 2008, 20:13:28 (17 years ago)
- 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" 2 2 ##bind container=container 3 3 ##bind context=context … … 25 25 import logging 26 26 import DateTime 27 logger = logging.getLogger('Skins.ti_ 71fc_resolve')27 logger = logging.getLogger('Skins.ti_474_resolve') 28 28 from Products.AdvancedQuery import Eq, Between, Le,In 29 29 aq_students = context.students_catalog.evalAdvancedQuery … … 42 42 course_results_to_change = [] 43 43 logger.info('start') 44 set_trace()44 #set_trace() 45 45 for result in course_results(): 46 46 student_id,level_id,code = result.key.split('|') … … 56 56 course_results_to_change += d, 57 57 logger.info('found %d correctable results' % len(course_results_to_change)) 58 set_trace()58 #set_trace() 59 59 for result in course_results_to_change: 60 60 try: 61 61 course_results.modifyRecord(**result) 62 logger.info(' %(student_id)scorrecting %(key)s' % result)62 logger.info('correcting %(key)s' % result) 63 63 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 67 67 logger.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" 2 2 ##bind container=container 3 3 ##bind context=context … … 25 25 import logging 26 26 import DateTime 27 logger = logging.getLogger('Skins.ti_71fc_resolve ')27 logger = logging.getLogger('Skins.ti_71fc_resolve_fix') 28 28 from Products.AdvancedQuery import Eq, Between, Le,In 29 29 aq_students = context.students_catalog.evalAdvancedQuery … … 60 60 logger.info('%(student_id)s deleting %(old_key)s' % result) 61 61 course_results.deleteRecord(result['old_key']) 62 62 63 63 logger.info('finished')
Note: See TracChangeset for help on using the changeset viewer.