Changeset 2767
- Timestamp:
- 26 Nov 2007, 21:11:46 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2766 r2767 1473 1473 self.portal_workflow.doActionFor(level,'open') 1474 1474 # the session string must not be copied into the level object 1475 if student_rec.current_verdict :1475 if student_rec.current_verdict and student_rec.current_level == level_id: 1476 1476 level.getContent().edit(mapping={'verdict': "%s" % 1477 1477 student_rec.current_verdict, … … 1528 1528 except KeyError: 1529 1529 return '', "No course result to edit: %s" % key 1530 if student_rec.current_verdict:1531 #makes only sense if the course_results are imported for the current session1532 try:1533 level = getattr(getattr(getattr(students_folder,1534 "%(student_id)s" % vars()),1535 'study_course'),1536 "%(level_id)s" % vars())1537 except:1538 return '', "could not find level %(level_id)s for %(student_id)s" % vars()1539 if self.portal_workflow.getInfoFor(level,'review_state',None) == "closed":1540 self.portal_workflow.doActionFor(level,'open')1541 level.getContent().edit(mapping={'verdict': "%s" %1542 student_rec.current_verdict,1543 'session': "%s" %1544 student_rec.current_session,1545 })1546 self.portal_workflow.doActionFor(level,'close')1547 1530 return key,'' 1548 1531 ###)
Note: See TracChangeset for help on using the changeset viewer.