Changeset 1096
- Timestamp:
- 19 Dec 2006, 21:56:55 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 2 added
- 1 deleted
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/actions.xml
r983 r1096 14 14 <action title="Staff Login" action_id="login_staff" category="student" 15 15 condition_expr="not: member" 16 url_expr=" python:"%s/login_staff?%s" % (portal_url, modules["urllib"].urlencode({"came_from": request.URL}))"16 url_expr="string:${portal_url}/login_staff" 17 17 visible="True"> 18 18 <permission>View</permission> … … 38 38 <action title="Student Login" action_id="login_student" category="student" 39 39 condition_expr="not:member" 40 url_expr=" python:"%s/login_student?%s" % (portal_url, modules["urllib"].urlencode({"came_from": request.URL}))"40 url_expr="string:${portal_url}/login_student" 41 41 visible="True"> 42 42 <permission>View</permission> -
WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py
r1094 r1096 46 46 #set_trace() 47 47 if s_review_state in ("student_created","admitted") and\ 48 a_review_state == 'created' :48 a_review_state == 'created' : 49 49 wftool.doActionFor(student_app,'open') 50 50 if student_pume is not None: … … 68 68 app_doc.edit(mapping = da) 69 69 elif s_review_state in ("admitted") and a_review_state == 'opened' and\ 70 not app_doc.app_ac_pin:70 not app_doc.app_ac_pin: 71 71 jamb_reg_no = app_doc.jamb_reg_no 72 72 for reg_no in (jamb_reg_no,jamb_reg_no.lower(),jamb_reg_no.upper()): … … 89 89 elif s_review_state == "clearance_pin_entered": 90 90 redirect_url = "%s/clearance_edit_form" % student.absolute_url() 91 redirect_url = "%s/student_index" % student.absolute_url() 91 else: 92 redirect_url = "%s/student_index" % student.absolute_url() 92 93 else: 93 94 logger.info('"%s", "logged in"' % (member)) -
WAeUP_SRP/trunk/skins/waeup_student/accommodation_slip.pt
r805 r1096 1 1 <metal:html tal:define="info context/getStudentInfo"> 2 <span tal:condition="not: info"> 3 <span tal:content="here/illegal_view" /> 4 </span> 5 <metal:block tal:condition="info"> 2 6 <metal:body use-macro="here/main_template/macros/master"> 3 7 <metal:main fill-slot="main"> … … 19 23 </metal:main> 20 24 </metal:body> 25 </metal:block> 21 26 </metal:html> -
WAeUP_SRP/trunk/skins/waeup_student/accommodation_view.pt
r805 r1096 1 1 <metal:html tal:define="info context/getStudentInfo"> 2 <span tal:condition="not: info"> 3 <span tal:content="here/illegal_view" /> 4 </span> 5 <metal:block tal:condition="info"> 2 6 <metal:body use-macro="here/waeup_content_master/macros/master"> 3 7 <metal:main fill-slot="main"> … … 28 32 </metal:main> 29 33 </metal:body> 34 </metal:block> 30 35 </metal:html> -
WAeUP_SRP/trunk/skins/waeup_student/admission_form.pt
r984 r1096 1 1 <metal:html tal:define="info context/getStudentInfo"> 2 <span tal:condition="not: info"> 3 <span tal:content="here/illegal_view" /> 4 </span> 5 <metal:block tal:condition="info"> 2 6 <metal:body use-macro="here/waeup_content_master/macros/master"> 3 7 <metal:main fill-slot="main"> … … 63 67 <form action="." method="post" class="group"> 64 68 65 <input tal:condition="python:review_state !='objection_raised'" type="submit" name="raise_objection:method" value="Raise an Objection"69 <input tal:condition="python:review_state=='admitted'" type="submit" name="raise_objection:method" value="Raise an Objection" 66 70 class="destructive" 67 71 tal:attributes="onclick python:'return window.confirm(\'%s\')' % 68 72 (cpsmcat('Confirm that you want to raise an objection.'), )" 69 73 /> 70 <input t ype="submit" name="application_edit:method"74 <input tal:condition="python:review_state in ('admitted', 'objection_raised',)" type="submit" name="application_edit:method" 71 75 class="context" value="Continue" 72 76 /> … … 75 79 </metal:main> 76 80 </metal:body> 81 </metal:block> 77 82 </metal:html> -
WAeUP_SRP/trunk/skins/waeup_student/admission_rejected_view.pt
r833 r1096 1 <metal:html tal:define="info context/getStudentInfo"> 2 <metal:body use-macro="here/main_template/macros/master"> 3 <metal:main fill-slot="main"> 4 <span tal:condition="not: info"> 5 <metal:block use-macro="here/error_not_found/macros/not_found" /> 6 </span> 7 <span tal:condition="info"> 8 <h3>You are not admitted into the University of Benin!</h3> 9 </span> 10 </metal:main> 11 </metal:body> 12 </metal:html> 1 <metal:body use-macro="here/main_template/macros/master"> 2 <metal:main fill-slot="main"> 3 4 <h3>You are not admitted into the University of Benin!</h3> 5 6 </metal:main> 7 </metal:body> -
WAeUP_SRP/trunk/skins/waeup_student/admission_slip.pt
r984 r1096 1 1 <metal:html tal:define="info context/getStudentInfo"> 2 <span tal:condition="not: info"> 3 <span tal:content="here/illegal_view" /> 4 </span> 5 <metal:block tal:condition="info"> 2 6 <metal:body use-macro="here/main_template/macros/master"> 3 7 <metal:main fill-slot="main"> … … 53 57 </metal:main> 54 58 </metal:body> 59 </metal:block> 55 60 </metal:html> -
WAeUP_SRP/trunk/skins/waeup_student/application_edit_form.pt
r1071 r1096 1 1 <metal:html tal:define="info context/getApplicationInfo"> 2 2 <span tal:condition="not: info"> 3 < metal:block use-macro="here/illegal_view/macros/illegal_view" />3 <span tal:content="here/illegal_view" /> 4 4 </span> 5 5 <metal:block tal:condition="info"> -
WAeUP_SRP/trunk/skins/waeup_student/application_view.pt
r1082 r1096 1 1 <metal:html tal:define="info context/getStudentInfo"> 2 2 <span tal:condition="not: info"> 3 < metal:block use-macro="here/illegal_view/macros/illegal_view" />3 <span tal:content="here/illegal_view" /> 4 4 </span> 5 5 <metal:block tal:condition="info"> -
WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_form.pt
r1085 r1096 2 2 <metal:block tal:define="info context/getClearanceInfo"> 3 3 <span tal:condition="not: info"> 4 < metal:block use-macro="here/illegal_view/macros/illegal_view" />4 <span tal:content="here/illegal_view" /> 5 5 </span> 6 6 <metal:block tal:condition="info"> -
WAeUP_SRP/trunk/skins/waeup_student/clearance_slip.pt
r1069 r1096 3 3 <metal:main fill-slot="main"> 4 4 <span tal:condition="not: info"> 5 < metal:block use-macro="here/error_not_found/macros/not_found" />5 <span tal:content="here/illegal_view" /> 6 6 </span> 7 7 <span tal:condition="info"> -
WAeUP_SRP/trunk/skins/waeup_student/clearance_view.pt
r915 r1096 3 3 is_student context/isStudent; 4 4 "> 5 <span tal:condition="not: info"> 6 <span tal:content="here/illegal_view" /> 7 </span> 8 <metal:block tal:condition="info"> 5 9 <metal:body use-macro="here/waeup_content_master/macros/master"> 6 10 <metal:main fill-slot="main"> … … 40 44 </metal:main> 41 45 </metal:body> 46 </metal:block> 42 47 </metal:html> -
WAeUP_SRP/trunk/skins/waeup_student/contact_student_form.pt
r942 r1096 2 2 info context/getStudentInfo; 3 3 "> 4 <span tal:condition="not: info"> 5 <span tal:content="here/illegal_view" /> 6 </span> 7 <metal:block tal:condition="info"> 4 8 <metal:body use-macro="here/main_template/macros/master"> 5 9 <metal:main fill-slot="main"> … … 73 77 </metal:main> 74 78 </metal:body> 79 </metal:block> 75 80 </metal:html> -
WAeUP_SRP/trunk/skins/waeup_student/no_booking_allowed.pt
r942 r1096 1 <metal:html tal:define="info context/getStudentInfo"> 2 <metal:body use-macro="here/main_template/macros/master"> 3 <metal:main fill-slot="main"> 4 <span tal:condition="not: info"> 5 <metal:block use-macro="here/error_not_found/macros/not_found" /> 6 </span> 7 <span tal:condition="info"> 8 <h3>You are not eligible to book accommodation!</h3> 9 </span> 10 </metal:main> 11 </metal:body> 12 </metal:html> 1 <metal:body use-macro="here/main_template/macros/master"> 2 <metal:main fill-slot="main"> 3 4 <h3>You are not eligible to book accommodation!</h3> 5 6 </metal:main> 7 </metal:body> 8 -
WAeUP_SRP/trunk/skins/waeup_student/objection_raised_form.pt
r891 r1096 1 1 <metal:html tal:define="info options/info|context/getStudentInfo; 2 2 review_state info/review_state"> 3 <span tal:condition="not: info"> 4 <span tal:content="here/illegal_view" /> 5 </span> 6 <metal:block tal:condition="info"> 3 7 <metal:body use-macro="here/waeup_content_master/macros/master"> 4 8 <metal:main fill-slot="main"> … … 66 70 </metal:main> 67 71 </metal:body> 72 </metal:block> 68 73 </metal:html> -
WAeUP_SRP/trunk/skins/waeup_student/search_students.py
r1095 r1096 18 18 mtool = context.portal_membership 19 19 member = mtool.getAuthenticatedMember() 20 is_anon = mtool.isAnonymousUser() 20 21 #roles = member.getRolesInContext(context) 21 22 lt = context.portal_layouts 22 23 #pr = context.portal_registration 23 24 path_info = request.get('PATH_INFO').split('/') 25 26 allowed = True 27 if is_anon: 28 allowed = False 29 24 30 try: 25 31 from Products.AdvancedQuery import Eq, Between, Le,In … … 91 97 info = user_info, 92 98 students = [], 93 allowed = True,99 allowed = allowed, 94 100 ) 95 101 what = ds.get('search_mode') … … 112 118 info = user_info, 113 119 students = items, 114 allowed = True,120 allowed = allowed, 115 121 ) 116 122 st_queries = ('jamb_reg_no','matric_no','name') … … 129 135 psm = "No student found!", 130 136 students = [], 131 allowed = True,137 allowed = allowed, 132 138 ) 133 139 elif what == "department": … … 154 160 #set_trace() 155 161 only_review = False 156 query = In('faculty',faculties) | In('department',departments) 162 query = In('faculty',faculties) | In('department',departments) 157 163 res = aq_students(query) 158 164 search_set = [r.id for r in res] … … 203 209 info = user_info, 204 210 students = students, 205 allowed = True,211 allowed = allowed, 206 212 co_view = co_view, 207 213 ) … … 210 216 info = user_info, 211 217 students = students, 212 allowed = True,213 ) 214 215 218 allowed = allowed, 219 ) 220 221 -
WAeUP_SRP/trunk/skins/waeup_student/search_students_form.pt
r1086 r1096 15 15 <metal:main fill-slot="main"> 16 16 <span tal:condition="not: allowed"> 17 < metal:block use-macro="here/error_not_found/macros/not_found" />17 <span tal:content="here/illegal_view" /> 18 18 </span> 19 19 <span tal:condition="allowed" tal:omit-tag=""> -
WAeUP_SRP/trunk/skins/waeup_student/statistics_view.pt
r1086 r1096 3 3 member mtool/getAuthenticatedMember;" 4 4 > 5 <span tal:condition="not: departments"> 6 <span tal:content="here/illegal_view" /> 7 </span> 8 <metal:block tal:condition="departments"> 5 9 <metal:body use-macro="here/main_template/macros/master"> 6 10 <metal:main fill-slot="main"> … … 38 42 </metal:main> 39 43 </metal:body> 44 </metal:block> 40 45 </metal:html> -
WAeUP_SRP/trunk/skins/waeup_student/student_view.pt
r1049 r1096 6 6 <metal:main fill-slot="main"> 7 7 <span tal:condition="not: info"> 8 < metal:block use-macro="here/error_not_found/macros/not_found" />8 <span tal:content="here/illegal_view" /> 9 9 </span> 10 10 <span tal:condition="info" -
WAeUP_SRP/trunk/skins/waeup_student/study_course_view.pt
r1025 r1096 1 <metal:html tal:define="info context/getStudyCourseInfo; 2 is_so context/isSectionOfficer; 3 s_info context/getStudentInfo;" 4 > 1 <metal:html tal:define="is_so context/isSectionOfficer; 2 s_info context/getStudentInfo;" 3 > 4 <span tal:condition="not: s_info"> 5 <span tal:content="here/illegal_view" /> 6 </span> 7 <metal:block tal:condition="s_info"> 8 <span tal:define="info context/getStudyCourseInfo"> 5 9 <metal:body use-macro="here/waeup_content_master/macros/master"> 6 10 <metal:block fill-slot="header"> … … 91 95 </form> 92 96 </metal:main> 93 94 <metal:sub fill-slot="sub"/> 97 95 98 </metal:body> 99 </span> 100 </metal:block> 96 101 </metal:html>
Note: See TracChangeset for help on using the changeset viewer.