Changeset 2476
- Timestamp:
- 29 Oct 2007, 21:53:10 (17 years ago)
- Location:
- WAeUP_SRP/base/skins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_epayment/interswitch_cb.py
r2475 r2476 93 93 pass 94 94 verdict = s_brain.verdict 95 if verdict == 'N/A': 96 verdict = '' 95 97 study_course.getContent().edit(mapping= {'current_level': next_level_id, 96 98 'current_session': next_session_id, 99 'current_verdict': next_verdict, 97 100 'previous_verdict': verdict, 98 101 }) -
WAeUP_SRP/base/skins/waeup_student/getStudyCourseInfo.py
r2475 r2476 84 84 info['items'] = items 85 85 86 try: 87 info['verdict'] = context.portal_vocabularies.verdicts.get(info['doc'].current_verdict).upper() 88 except: 89 info['verdict'] = course.current_verdict 90 try: 91 info['previous_verdict'] = context.portal_vocabularies.verdicts.get(info['doc'].previous_verdict).upper() 92 except: 93 info['previous_verdict'] = course.previous_verdict 94 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 95 102 return info 96 103
Note: See TracChangeset for help on using the changeset viewer.