Changeset 1413
- Timestamp:
- 13 Feb 2007, 14:44:45 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py
r1411 r1413 1 ## Script (Python) "getSessionResults"2 ##bind container=container3 ##bind context=context4 ##bind namespace=5 ##bind script=script6 ##bind subpath=traverse_subpath7 ##parameters=8 ##title=9 ##10 1 # $Id: display_session_results.py 1166 2006-12-31 18:11:47Z henrik $ 11 2 """ … … 99 90 gpa = float(gpa) / course_count 100 91 gpa = "%4.2f" % gpa 101 if student_from_cat.sex: 102 info['sex'] = 'F' 103 else: 104 info['sex'] = 'M' 105 info['level'] = int(student_from_cat.level)-100 92 93 # not available at the beginning 94 #if student_from_cat.sex: 95 # info['sex'] = 'F' 96 #else: 97 # info['sex'] = 'M' 98 #info['level'] = int(student_from_cat.level)-100 99 106 100 info['verdict'] = verdict 107 101 info['session'] = session -
WAeUP_SRP/trunk/skins/waeup_student/session_results_slip.pt
r1411 r1413 24 24 </tr> 25 25 <tr> 26 <th>Sex:</th><td tal:content="info/s ex" />26 <th>Sex:</th><td tal:content="info/student_from_returning/Sex" /> 27 27 </tr> 28 28 <tr> … … 30 30 </tr> 31 31 <tr> 32 <th>Level:</th><td tal:content="info/ level" />32 <th>Level:</th><td tal:content="info/student_from_returning/Level" /> 33 33 </tr> 34 34 </table> -
WAeUP_SRP/trunk/skins/waeup_student/session_results_view.pt
r1411 r1413 2 2 <metal:main fill-slot="main" 3 3 tal:define="info context/getSessionResults"> 4 <div style="text-align: right">5 <a href="" target="slip" tal:attributes="href string:session_results_slip "4 <div tal:condition="nothing" style="text-align: right"> 5 <a href="" target="slip" tal:attributes="href string:session_results_slip?nr=${info/student/matric_no}" 6 6 onclick="javascript:window.open('','slip','width=600, height=700, directories=no, toolbar=no, location=no, menubar=yes, scrollbars=yes, status=no, resizable=no, dependent=no')"> 7 7 <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" /> 8 Session alResult Slip8 Session Result Slip 9 9 </a> 10 10 </div> … … 24 24 </tr> 25 25 <tr> 26 <th>Sex:</th><td tal:content="info/s ex" />26 <th>Sex:</th><td tal:content="info/student_from_returning/Sex" /> 27 27 </tr> 28 28 <tr> … … 30 30 </tr> 31 31 <tr> 32 <th>Level:</th><td tal:content="info/ level" />32 <th>Level:</th><td tal:content="info/student_from_returning/Level" /> 33 33 </tr> 34 34 </table> … … 71 71 </span> 72 72 </table> 73 <br /> 74 <form action="" method="post" 75 tal:attributes="action string:${context/portal_url}/personal_edit_form"> 76 <input type="submit" 77 class="standalone" 78 value="Continue to Personal Data Page!" 79 name="submit" /> 80 </form> 73 81 74 </metal:main> 82 75 </metal:body> 83 76 84 -
WAeUP_SRP/trunk/skins/waeup_utilities/createReturningStudent.py
r1260 r1413 31 31 sid,jamb_reg_no = context.waeup_tool.createOne(students_folder,student_brain,'?') 32 32 logger.info('"%s","Created Student","%s", "%s" ' % (member,sid,matric_no)) 33 return "Student MatricNo %s, StudentId %s Jamb %screated" % (matric_no,sid,jamb_reg_no)33 return "Student MatricNo %s, StudentId %s (JAMBRegNo %s) created" % (matric_no,sid,jamb_reg_no) 34 34 35 35 matric_nos = context.returning_import.uniqueValuesFor('matric_no')
Note: See TracChangeset for help on using the changeset viewer.