Changeset 3135


Ignore:
Timestamp:
9 Feb 2008, 11:40:12 (17 years ago)
Author:
joachim
Message:

optimize mass_edit_verdict, exclude deactivated from pending.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r3133 r3135  
    19741974            return '',"no id or matric_no specified"
    19751975        student_id = student_record.id
    1976         student_obj = getattr(students_folder,student_id)
    1977         f2t = self.field2types_student
    19781976        d = {}
    19791977        #import pdb;pdb.set_trace()
     
    19931991                                                                                    student_record.level)
    19941992        student_review_state =  student_record.review_state
     1993        if student_review_state == 'deactivated':
     1994            return '',"student %s in review_state %s" % (student_id, student_review_state)
    19951995        if student_review_state not in ('courses_validated','returning'):
    19961996            return student_id,"student %s in wrong review_state %s" % (student_id, student_review_state)
     1997        student_obj = getattr(students_folder,student_id)
     1998        f2t = self.field2types_student
    19971999        study_course_obj = getattr(student_obj,'study_course',None)
    19982000        if study_course_obj is None:
Note: See TracChangeset for help on using the changeset viewer.