Changeset 1177 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 2 Jan 2007, 15:02:02 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/display_session_results.py
r1175 r1177 70 70 if student_obj and hasattr(student_obj,'application'): 71 71 registered = student_id 72 72 else: 73 registered = "no_student_object" 73 74 return context.session_results_anon_view(student=student_rec, 74 75 results=results, 76 name = "%(Firstname)s %(Middlename)s %(Lastname)s" % student_rec, 75 77 registered = registered) 76 78 -
WAeUP_SRP/trunk/skins/waeup_student/layout_search_session_edit.pt
r1176 r1177 10 10 formaction options/formaction; 11 11 matric_no options/matric_no|nothing; 12 name options/name|nothing; 12 13 creation creation|nothing; 13 14 cpsmcat nocall:here/translation_service; … … 18 19 > 19 20 21 <input type="hidden" name="name" tal:attributes="value name"/> 20 22 <input type="hidden" name="matric_no" tal:attributes="value matric_no"/> 21 23 <table class="layoutDefault" summary="Form layout" -
WAeUP_SRP/trunk/skins/waeup_student/session_results_anon_view.pt
r1175 r1177 53 53 </table> 54 54 <br /> 55 <div tal:condition="registered">You have already set your Password, please 56 <a href="" tal:attributes="href string:${context/portal_url}/login_student">login</a> 57 with your UserId <span tal:replace="registered" /> 55 <div tal:condition="registered"> 56 <span tal:condition="python: registered == 'no_student_object'"> 57 Your Datafiles have not yet been created, please check again later. 58 </span> 59 <span tal:condition="python: registered != 'no_student_object'"> 60 You have already set your Password, please 61 <a href="" tal:attributes="href string:${context/portal_url}/login_student">login</a> 62 with your UserId <span tal:replace="registered" /> 63 </span> 58 64 </div> 59 65 <form tal:condition="not: registered" action="" method="post" 60 66 tal:attributes="action string:${context/portal_url}/set_access_data"> 67 <input type="hidden" name="name" tal:attributes="value options/name" /> 61 68 <input type="hidden" name="matric_no" tal:attributes="value student/matric_no" /> 62 <input type="hidden" name="jamb_reg_no" tal:attributes="value student/Entryregno" />63 69 <input type="submit" 64 70 class="standalone" -
WAeUP_SRP/trunk/skins/waeup_student/set_access_data.py
r1169 r1177 5 5 return html renderer + psm 6 6 """ 7 import DateTime 7 import DateTime,logging 8 8 current = DateTime.DateTime() 9 9 pr = context.portal_registration 10 10 logger = logging.getLogger('Returning') 11 11 validate = REQUEST.has_key("cpsdocument_edit_button") 12 12 … … 14 14 #pr = context.portal_registration 15 15 default = {'matric_no':matric_no} 16 st_res = context.students_catalog(matric_no = matric_no) 17 if st_res: 18 sid = st_res[0].id 19 else: 20 logger.info('"%s","Studentobject does not exist"' % matric_no) 16 21 res,psm,ds = lt.renderLayout(layout_id= 'student_session_results_search', 17 22 schema_id= 'student_returning', … … 25 30 commit = False, 26 31 ) 27 if psm == 'invalid': 28 return context.set_access_data_form(rendered = res, 29 psm = "Please correct your input!", 30 #psm = "%s, %s" % (psm,ds), 31 firstlayout = True, 32 lastlayout = True, 33 ds = ds, 34 ) 35 elif psm == '': 32 if psm == '': 36 33 return context.set_access_data_form(rendered = res, 37 34 psm = None, … … 39 36 lastlayout = True, 40 37 ds = ds, 38 name = "%(name)s" % REQUEST.form 41 39 ) 42 elif psm == 'valid': 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 ## ) 54 ## from Products.zdb import set_trace;set_trace() 40 elif psm == 'invalid': 41 psm = "Please correct your input!" 42 elif psm == 'valid' and not REQUEST.form.has_key('acknowledge'): 43 psm = "You did not check the ackkowledge box !" 44 else: 45 psm = '' 46 if psm != '': 47 return context.set_access_data_form(rendered = res, 48 #psm = "%s, %s" % (psm,ds), 49 psm = psm, 50 firstlayout = True, 51 lastlayout = True, 52 ds = ds, 53 name = "%(name)s" % REQUEST.form 54 ) 55 55 password = REQUEST.get('widget__password') 56 56 email = ds.get('email') 57 st_res = context.students_catalog(matric_no = matric_no)58 if st_res:59 sid = st_res[0].id60 57 context.waeup_tool.makeStudentMember(sid,password=password) 61 58 args = {} -
WAeUP_SRP/trunk/skins/waeup_student/set_access_data_form.pt
r1163 r1177 13 13 </metal:block> 14 14 <metal:block fill-slot="main"> 15 <h3><span tal:replace="options/name"/></h3> 15 16 <h3>Enter Your Authentication Details and Choose a Password!</h3> 16 17 <br />
Note: See TracChangeset for help on using the changeset viewer.