Changeset 3362 for WAeUP_SRP/base/skins/waeup_student
- Timestamp:
- 20 Mar 2008, 16:20:15 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/create_level.py
r3074 r3362 176 176 177 177 if records: 178 context.course_results.addMultipleRecords(records) 178 existing_uids = context.course_results.addMultipleRecords(records) 179 if existing_uids: 180 logger.info('%s level %s %s existing keys' % (student.id, 181 current_level, 182 ",".join(existing_uids))) 183 179 184 logger.info('%s finished to create level %s' % (student.id,current_level)) 180 185 -
WAeUP_SRP/base/skins/waeup_student/level_delete.py
r2817 r3362 12 12 delete a level, fix students review if necessary 13 13 """ 14 try: 15 from Products.zdb import set_trace 16 except: 17 def set_trace(): 18 pass 14 19 15 20 import logging 16 logger = logging.getLogger('Skins. folder_delete')21 logger = logging.getLogger('Skins.level_delete') 17 22 member_id = str(context.portal_membership.getAuthenticatedMember()) 18 23 … … 50 55 for level_id in ids: 51 56 context.course_results.deleteResultsHere(level_id,student_id) 57 logger.info("%s deleted level(s) %s of %s" % (member_id,','.join(ids),student_id)) 52 58 here.manage_delObjects(ids) 53 54 59 message = 'portal_status_message=psm_item(s)_deleted' 55 60 else:
Note: See TracChangeset for help on using the changeset viewer.