Changeset 2466 for WAeUP_SRP/base/skins
- Timestamp:
- 28 Oct 2007, 20:58:41 (17 years ago)
- Location:
- WAeUP_SRP/base/skins
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_epayment/getPaymentsFolderInfo.py
r2461 r2466 64 64 info['next_session'] = next_info['next_session_id'] 65 65 info['next_session_str'] = next_info['next_session_str'] 66 info['payment_method'] = "done" 67 if next_info['next_transition'] is None and next_info['reasons']: 68 info['payment_method'] = "not_possible" 69 info['reasons'] = next_info['reasons'] 70 elif review_state == 'cleared_and_validated': 66 info['payment_method'] = "" 67 info['reasons'] = next_info['reasons'] 68 69 if review_state == 'cleared_and_validated': 71 70 info['payment_method'] = "online_payment" 72 71 elif review_state == 'returning' and info['next_session'] != session: 73 72 info['payment_method'] = "sc_payment" 74 75 73 info['prod_id'] = '61' 76 77 74 78 75 info['student_name'] = s_brain.name -
WAeUP_SRP/base/skins/waeup_epayment/payments_view.pt
r2464 r2466 75 75 /> 76 76 </form> 77 <div tal:condition="python: info.get('payment_method') == 'not_possible'"> 78 You are not able to pay your schoolfee because: <br /> 79 <ul> 80 <span tal:repeat="reason info/reasons" tal:omit-tag=""> 81 <li tal:content="reason" /> 82 </span> 83 </ul> 77 <div tal:condition="info/reasons"> 78 <font color="red" tal:content="info/reasons"></font> 79 <br /><br /> 84 80 </div> 85 81 </div> -
WAeUP_SRP/base/skins/waeup_student/getNextInfo.py
r2464 r2466 20 20 info = {} 21 21 22 reasons = '' 23 22 24 session_id = student_brain.session 23 25 level_id = student_brain.level 24 26 review_state = student_brain.review_state 25 27 verdict = student_brain.verdict 28 29 has_verdict = verdict and verdict != 'N/A' 30 has_session = session_id and session_id != 'N/A' 31 has_level = level_id and level_id != 'N/A' 32 26 33 info['next_transition'] = None 27 34 info['next_session_id'] = next_session_id = session_id 28 35 info['next_level_id'] = next_level_id = level_id 29 reasons = []30 36 verdicts_voc = context.portal_vocabularies.verdicts 31 37 if review_state == 'cleared_and_validated': 32 38 info['next_transition'] = "pay_school_fee" 33 elif review_state == 'returning' and verdict and level_id and student_brain.session: 39 elif review_state == 'returning' and has_verdict and has_level and has_session: 40 info['next_session_id'] = next_session_id = "%02d" % (int(session_id)+1) 34 41 if int(session_id) > int(context.getSessionId()[0]) -2: 35 if verdict not in ('A','B',): 42 info['next_transition'] = "pay_school_fee" 43 if verdict in ('A','B',): 44 info['next_level_id'] = "%s" % (int(level_id) + 100) 45 else: 36 46 info['next_level_id'] = level_id 37 if not verdict: 38 reasons += "There is no verdict.", 39 else: 40 reasons += "Your are not a %s" % verdicts_voc.get('A'), 41 reasons += "or not a %s" % verdicts_voc.get('B'), 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) 45 info['next_transition'] = "pay_school_fee" 47 else: 48 info['next_level_id'] = "%s" % (int(level_id) + 100) 49 elif not (has_session and has_level and has_verdict): 50 reasons = "Your data record is incomplete. School fee payment has been disabled, please contact your faculty!" 51 46 52 info['reasons'] = reasons 47 53 info['next_session_str'] = context.sessions_voc(next_session_id) -
WAeUP_SRP/base/skins/waeup_student/getSessionResults.py
r1900 r2466 56 56 res = results(matric_no = matric_no) 57 57 results = res 58 else: 58 else: 59 59 results = [] 60 60 … … 67 67 course_count = 0 68 68 session = None 69 level = None 69 70 70 71 for r in results: 71 72 if session is None: 72 73 session = r.Session 74 if level is None: 75 level = r.Level 73 76 result = {} 74 77 for field in fields: … … 110 113 info['verdict'] = verdict = 'N/A' 111 114 112 if student_from_cat.level: 113 if student_from_cat.sex: 114 info['sex'] = 'F' 115 else: 116 info['sex'] = 'M' 117 if verdict in ('A','B'): 118 info['level'] = int(student_from_cat.level)-100 119 else: 120 info['level'] = int(student_from_cat.level) 115 if session: 116 info['session'] = session 121 117 else: 122 info['sex'] = 'N/A' 118 info['session'] = 'N/A' 119 if level: 120 info['level'] = level 121 else: 123 122 info['level'] = 'N/A' 124 125 info['session'] = session126 123 info['gpa'] = gpa 127 124 info['results'] = (sem1, sem2) -
WAeUP_SRP/base/skins/waeup_student/getStudyLevelInfo.py
r2454 r2466 17 17 if mtool.isAnonymousUser(): 18 18 return None 19 member = mtool.getAuthenticatedMember() 20 member_id = str(member) 19 21 20 22 try: … … 92 94 if context.objectIds(): 93 95 course_results.moveResultsHere(context,student_id) 94 logger.info("%s moved courseresults and deleted objects in level %s" % (student_id,level_id))96 logger.info("%s initiated moveResultsHere for %s in level %s" % (member_id,student_id,level_id)) 95 97 credits_total,carry_overs,normal = course_results.getCourses(student_id,level_id) 96 98 info['credits_total'] = credits_total -
WAeUP_SRP/base/skins/waeup_student/session_results_anon_view.pt
r1292 r2466 12 12 <tr> 13 13 <th width="150px">Matriculation Number:</th><td tal:content="student/matric_no" /> 14 </tr>15 <tr>16 <th>Sex:</th><td tal:content="student/Sex" />17 14 </tr> 18 15 <tr> -
WAeUP_SRP/base/skins/waeup_student/session_results_view.pt
r1851 r2466 26 26 <tr> 27 27 <th width="150px">Matriculation Number:</th><td tal:content="info/student/matric_no" /> 28 </tr>29 <tr>30 <th>Sex:</th><td tal:content="info/sex" />31 </tr>32 <tr>33 <th valign="top">Course of Study:</th><td tal:content="info/student/course" />34 28 </tr> 35 29 <tr>
Note: See TracChangeset for help on using the changeset viewer.