Changeset 2483 for WAeUP_SRP/base/skins/waeup_student
- Timestamp:
- 30 Oct 2007, 20:29:47 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/getStudyCourseInfo.py
r2476 r2483 60 60 61 61 items = [] 62 63 if hasattr(course,'current_verdict'): 64 try: 65 info['verdict'] = context.portal_vocabularies.verdicts.get(course.current_verdict).upper() 66 except: 67 info['verdict'] = course.current_verdict 68 else: 69 info['verdict'] = '' 70 71 if hasattr(course,'previous_verdict'): 72 try: 73 previous_verdict = course.previous_verdict 74 info['previous_verdict'] = context.portal_vocabularies.verdicts.get(course.previous_verdict).upper() 75 except: 76 info['previous_verdict'] = course.previous_verdict 77 else: 78 info['previous_verdict'] = '' 79 previous_verdict = '' 80 81 62 82 current_level = sbrain.level 63 83 levels = context.objectIds() … … 68 88 may_register = (student_review_state in ('school_fee_paid',)) and\ 69 89 current_level not in levels and\ 70 ( sbrain.verdict in ('A','B','C','F','J','L','M') or sbrain.level == '100' or (sbrain.mode.startswith('de') and sbrain.level == '200'))90 (previous_verdict in ('A','B','C','F','J','L','M') or sbrain.level == '100' or (sbrain.mode.startswith('de') and sbrain.level == '200')) 71 91 72 92 levels.sort() … … 84 104 info['items'] = items 85 105 86 if hasattr(course,'current_verdict'): 87 try: 88 info['verdict'] = context.portal_vocabularies.verdicts.get(course.current_verdict).upper() 89 except: 90 info['verdict'] = course.current_verdict 91 else: 92 info['verdict'] = '' 93 94 if hasattr(course,'previous_verdict'): 95 try: 96 info['previous_verdict'] = context.portal_vocabularies.verdicts.get(course.previous_verdict).upper() 97 except: 98 info['previous_verdict'] = course.previous_verdict 99 else: 100 info['previous_verdict'] = '' 101 106 107 102 108 return info 103 109
Note: See TracChangeset for help on using the changeset viewer.