Changeset 2664 for WAeUP_SRP/base/skins/waeup_student/getStudyLevelInfo.py
- Timestamp:
- 15 Nov 2007, 14:35:05 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/getStudyLevelInfo.py
r2649 r2664 46 46 info['is_ca'] = is_ca = context.isCourseAdviser() 47 47 info['student'] = student = context.students_catalog(id=student_id)[0] 48 info['review_state'] = review_state = context.getStudentReviewState()48 info['review_state'] = review_state = student.review_state 49 49 info['view_only'] = review_state != "school_fee_paid" 50 info['show_check_boxes'] = (is_ca and review_state in ('school_fee_paid',)) or\ 51 (is_student and context.getStudentReviewState() == "school_fee_paid") or\ 50 51 52 has_paid = review_state == 'school_fee_paid' 53 54 info['show_check_boxes'] = (is_ca and has_paid) or\ 55 (is_student and has_paid) or\ 52 56 (is_so) 57 58 53 59 info['choosen_ids'] = request.get('ids',[]) 54 60 info['status_info'] = "" … … 77 83 info['credits_exceeded'] = credits_total > max_credits 78 84 current_session = student.session 79 info['submission_allowed']= not info['credits_exceeded'] and\ 80 current_session == context.getSessionId()[0] 85 86 info['submission_allowed']= review_state in ('school_fee_paid','returning') and has_paid 87 info['validation_allowed']= review_state == 'courses_registered' 88 info['rejection_allowed']= review_state in ('courses_registered', 'courses_validated',) 89 90 81 91 # carry_overs.sort(cmp_semester_id) 82 92 info['carry_overs'] = carry_overs … … 86 96 info['normal3'] = normal3 87 97 88 info['data_missing'] = not info['normal1'] and not info['normal2'] and not info['normal3'] 98 info['data_missing'] = not info['normal1'] and not info['normal2'] and not info['normal3'] 89 99 info['spillover'] = student.level > student.end_level 90 100
Note: See TracChangeset for help on using the changeset viewer.