Changeset 2461 for WAeUP_SRP/base/skins/waeup_student
- Timestamp:
- 28 Oct 2007, 16:47:34 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/getNextInfo.py
r2459 r2461 18 18 level_id = student_brain.level 19 19 review_state = student_brain.review_state 20 verdict= student_brain.verdict20 info['verdict'] = student_brain.verdict 21 21 info['next_transition'] = None 22 22 info['next_session_id'] = next_session_id = session_id 23 23 info['next_level_id'] = next_level_id = level_id 24 24 reasons = [] 25 verdicts_voc = context.portal_vocabularies.verdicts 25 26 if review_state == 'cleared_and_validated': 26 27 info['next_transition'] = "pay_school_fee" … … 32 33 if verdict not in ('A','B',): 33 34 info['next_level_id'] = level_id 34 35 if not verdict: 36 reasons += "There is no verdict." 37 else: 38 reasons += "Your are not a %s" % verdicts_voc.get('A') 39 reasons += "or not a %s" % verdicts_voc.get('B') 40 else: 41 info['next_transition'] = "pay_school_fee" 42 info['reasons'] = reasons 35 43 info['next_session_str'] = context.sessions_voc(next_session_id) 36 44
Note: See TracChangeset for help on using the changeset viewer.