- Timestamp:
- 7 Sep 2010, 20:49:28 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPImport.py
r5512 r5513 1462 1462 msg = 'student %s: no study_course object' % student_id 1463 1463 break 1464 verdict = d['verdict'] = d['current_verdict'] = mapping.get('current_verdict','') 1465 1464 1466 level_obj = getattr(study_course_obj,current_level,None) 1465 1467 if level_obj is None: 1466 msg = 'student %s: no study_level object for level %s' % (student_id, 1467 current_level) 1468 break 1469 verdict = d['verdict'] = d['current_verdict'] = mapping.get('current_verdict','') 1470 1471 #if verdict == student_record.verdict: 1472 # msg = 'student %s: verdict already set to %s' % (student_id, 1473 # verdict) 1474 1475 level_review_state = wftool.getInfoFor(level_obj,'review_state',None) 1476 if level_review_state != "closed": 1477 #wftool.doActionFor(level_obj,'close') 1478 self.waeup_tool.changeWorkflowState(level_obj, 'closed') 1479 # msg = 'student %s: level %s is not closed' % (student_id, 1480 # current_level) 1481 1482 study_course_obj.getContent().edit(mapping = d) 1483 level_obj.getContent().edit(mapping = d) 1468 #msg = 'student %s: no study_level object for level %s' % (student_id,current_level) 1469 #break 1470 level_review_state = wftool.getInfoFor(level_obj,'review_state',None) 1471 if level_review_state != "closed": 1472 self.waeup_tool.changeWorkflowState(level_obj, 'closed') 1473 level_obj.getContent().edit(mapping = d) 1474 study_course_obj.getContent().edit(mapping = d) 1484 1475 if student_review_state != "returning": 1485 #wftool.doActionFor(student_obj,'return')1486 1476 self.waeup_tool.changeStudentState(student_obj, 'returning') 1487 # try:1488 # wftool.doActionFor(level_obj,'close')1489 # except:1490 # pass1491 1477 break 1492 1478 return student_id,msg,mapping
Note: See TracChangeset for help on using the changeset viewer.