Changeset 3206
- Timestamp:
- 23 Feb 2008, 22:59:10 (17 years ago)
- Location:
- WAeUP_SRP/base/skins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_accommodation/change_bed.py
r3170 r3206 84 84 list = [] 85 85 to_modify = [] 86 for r in records[1:100]: 86 logger.info('started without student context') 87 for r in records: 87 88 info = context.getAccommodationInfo(r.student) 88 89 sbt = info.get('student_status',None) … … 98 99 #to_modify.append((r.bed,r.student,info['student_status'],info['acco_doc'])) 99 100 logger.info(message) 101 logger.info('finished') 100 102 101 103 return "\r".join(list) -
WAeUP_SRP/base/skins/waeup_utilities/purgeCourseResultsObjects.py
r3128 r3206 27 27 logger = logging.getLogger('Skins.purgeCourseResultsObjects') 28 28 from Products.AdvancedQuery import Eq, Between, Le,In 29 aq_results = context.course_results.evalAdvancedQuery 29 aq_results = context.course_results.evalAdvancedQuery 30 30 aq_portal = context.portal_catalog_real.evalAdvancedQuery 31 31 #aq_students = context.students_catalog.evalAdvancedQuery … … 72 72 if moved and not moved % commit_after: 73 73 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))) 75 75 # cocount += 1 76 76 # if cocount > 2:
Note: See TracChangeset for help on using the changeset viewer.