Changeset 1169 for WAeUP_SRP/trunk/skins
- Timestamp:
- 1 Jan 2007, 16:38:46 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/createReturningStudent.py
r1160 r1169 8 8 ##title= 9 9 ## 10 # $Id: create StudentFT.py 1151 2006-12-29 22:05:53Z joachim $11 ''' create the Studen base folder'''10 # $Id: createReturningStudent.py 1151 2006-12-29 22:05:53Z joachim $ 11 ''' create the Studentbase folder''' 12 12 13 13 … … 30 30 return "MatricNo %s not found in Returning Table" % matric_no 31 31 student_brain = res[0] 32 sid = context.waeup_tool.generateStudentId( student_brain.Firstname[0])32 sid = context.waeup_tool.generateStudentId('?') 33 33 students_folder.invokeFactory('Student', sid) 34 34 logger.info('"%s","Created Student","%s", "%s" ' % (member,sid,matric_no)) 35 35 student = getattr(students_folder,sid) 36 wftool.doActionFor(student,' clear_and_validate')36 wftool.doActionFor(student,'return') 37 37 student.manage_setLocalRoles(sid, ['Owner',]) 38 jamb_reg_no = student_brain.Entryregno, 38 39 context.students_catalog.addRecord(id = sid, 39 40 matric_no = matric_no, 40 jamb_reg_no = student_brain.Entryregno,41 jamb_reg_no = jamb_reg_no, 41 42 sex = student_brain.Sex == "F", 42 43 name = "%s %s %s" % (student_brain.Firstname, … … 44 45 student_brain.Lastname) 45 46 ) 46 return "Student MatricNo %s and %s created" % (matric_no,sid)47 return "Student MatricNo %s, StudentId %s Jamb %s created" % (matric_no,sid,jamb_reg_no) 47 48 -
WAeUP_SRP/trunk/skins/waeup_student/entry_results_anon_view.pt
r1123 r1169 1 <metal:html tal:define="pume options/pume"> 1 <metal:html tal:define="pume options/pume; 2 result_type pume/result_type|string:PU"> 2 3 <metal:body use-macro="here/main_template/macros/master"> 3 4 <metal:main fill-slot="main"> 4 5 5 <span tal:condition="python: pume['result_type']!='DE'">6 <span tal:condition="python:result_type =='PU'"> 6 7 <div style="text-align: right"> 7 8 <a href="" target="slip" tal:attributes="href string:entry_results_anon_slip?nr=${pume/jamb_reg_no}" … … 14 15 </span> 15 16 16 <span tal:condition="python: pume['result_type']=='DE'">17 <span tal:condition="python:result_type == 'DE'"> 17 18 <div style="text-align: right"> 18 19 <a href="" target="slip" tal:attributes="href string:entry_results_anon_slip?nr=${pume/jamb_reg_no}" -
WAeUP_SRP/trunk/skins/waeup_student/session_results_anon_view.pt
r1166 r1169 59 59 </table> 60 60 <br /> 61 <a href="" tal:attributes="href string:${context/absolute_url}/set_access_data?matric_no=${student/matric_no}"> 62 Continue to Login! 63 </a> 61 <form action="" method="post" 62 tal:attributes="action string:${context/portal_url}/set_access_data"> 63 <input type="hidden" name="matric_no" tal:attributes="value student/matric_no" /> 64 <input type="hidden" name="jamb_reg_no" tal:attributes="value student/Entryregno" /> 65 <input type="submit" 66 class="standalone" 67 value="Continue to Login!" 68 name="submit" /> 69 </form> 64 70 </metal:main> 65 71 </metal:body> -
WAeUP_SRP/trunk/skins/waeup_student/set_access_data.py
r1158 r1169 42 42 elif psm == 'valid': 43 43 pass 44 jamb_reg_no = ds.get('jamb_reg_no')45 r = context.returning_import(matric_no = matric_no)46 if r and r[0].Entryregno != jamb_reg_no or not r:47 psm = "Your Jamb Registration Nr is wrong"48 return context.set_access_data_form(rendered = res,49 psm = psm,50 firstlayout = True,51 lastlayout = True,52 ds = ds,53 )44 ## jamb_reg_no = ds.get('jamb_reg_no') 45 ## r = context.returning_import(matric_no = matric_no) 46 ## if r and r[0].Entryregno != jamb_reg_no or not r: 47 ## psm = "Your Jamb Registration Nr is wrong" 48 ## return context.set_access_data_form(rendered = res, 49 ## psm = psm, 50 ## firstlayout = True, 51 ## lastlayout = True, 52 ## ds = ds, 53 ## ) 54 54 ## from Products.zdb import set_trace;set_trace() 55 55 password = REQUEST.get('widget__password') … … 64 64 args['returning'] = '1' 65 65 args['email'] = email 66 args['phone_nr'] = ds.get('phone_nr') 66 67 from urllib import urlencode 67 68 url = "%s/logged_in?%s" % (context.absolute_url(),urlencode(args))
Note: See TracChangeset for help on using the changeset viewer.