Changeset 5513 for WAeUP_SRP/trunk


Ignore:
Timestamp:
7 Sep 2010, 20:49:28 (14 years ago)
Author:
Henrik Bettermann
Message:

do not require study_level object for verdict imports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPImport.py

    r5512 r5513  
    14621462                msg = 'student %s: no study_course object' % student_id
    14631463                break
     1464            verdict = d['verdict'] = d['current_verdict']  = mapping.get('current_verdict','')
     1465
    14641466            level_obj = getattr(study_course_obj,current_level,None)
    14651467            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)           
    14841475            if student_review_state != "returning":
    1485                 #wftool.doActionFor(student_obj,'return')
    14861476                self.waeup_tool.changeStudentState(student_obj, 'returning')
    1487             # try:
    1488             #     wftool.doActionFor(level_obj,'close')
    1489             # except:
    1490             #     pass
    14911477            break
    14921478        return student_id,msg,mapping
Note: See TracChangeset for help on using the changeset viewer.