Changeset 2464 for WAeUP_SRP/base/skins/waeup_student
- Timestamp:
- 28 Oct 2007, 17:42:26 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/getNextInfo.py
r2462 r2464 12 12 return the students next info 13 13 """ 14 try: 15 from Products.zdb import set_trace 16 except: 17 def set_trace(): 18 pass 14 19 15 20 info = {} … … 26 31 if review_state == 'cleared_and_validated': 27 32 info['next_transition'] = "pay_school_fee" 28 elif review_state == 'returning' and verdict and level_id and session: 29 info['next_level_id'] = "%s" % (int(level_id) + 100) 30 info['next_session_id'] = next_session_id = "%02d" % (int(session_id)+1) 33 elif review_state == 'returning' and verdict and level_id and student_brain.session: 31 34 if int(session_id) > int(context.getSessionId()[0]) -2: 32 info['next_transition'] = "pay_school_fee"33 35 if verdict not in ('A','B',): 34 36 info['next_level_id'] = level_id 35 37 if not verdict: 36 reasons += "There is no verdict." 38 reasons += "There is no verdict.", 37 39 else: 38 reasons += "Your are not a %s" % verdicts_voc.get('A') 39 reasons += "or not a %s" % verdicts_voc.get('B') 40 reasons += "Your are not a %s" % verdicts_voc.get('A'), 41 reasons += "or not a %s" % verdicts_voc.get('B'), 40 42 else: 43 info['next_level_id'] = "%s" % (int(level_id) + 100) 44 info['next_session_id'] = next_session_id = "%02d" % (int(session_id)+1) 41 45 info['next_transition'] = "pay_school_fee" 42 46 info['reasons'] = reasons
Note: See TracChangeset for help on using the changeset viewer.