Changeset 603 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 1 Oct 2006, 10:21:09 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_student
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/application_slip.pt
r544 r603 6 6 </span> 7 7 <span tal:condition="info"> 8 9 <div style="text-align: right"> 10 <a href="javascript:window.print('media=screen')"> 11 Print Slip</a> 12 </div> 13 14 8 15 <h3>Post UME Acknowledegement Slip</h3> 9 16 <br /> -
WAeUP_SRP/trunk/skins/waeup_student/application_view.pt
r548 r603 9 9 10 10 <div style="text-align: right"> 11 <a href="" target=_blank tal:attributes="href string:application_slip"> 11 <a href="" target="slip" tal:attributes="href string:application_slip" 12 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')"> 12 13 <img tal:attributes="src string:${here/portal_url}/actionicon_print.png" /> 13 14 Application Slip 14 15 </a> 16 15 17 </div> 16 18 -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r584 r603 21 21 roles = member.getRoles() 22 22 info = {} 23 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles23 info['is_manager'] = context.isManager 24 24 member_id = str(member) 25 25 if student is None: -
WAeUP_SRP/trunk/skins/waeup_student/searchStudents.py
r599 r603 22 22 info['wf_states'] = student_wf_states 23 23 info['wf_states'][0] = " ----- " 24 mtool = context.portal_membership25 member = mtool.getAuthenticatedMember()26 24 lt = context.portal_layouts 27 25 pr = context.portal_registration 28 26 path_info = request.get('PATH_INFO').split('/') 29 roles = member.getRoles() 30 is_manager = 'Manager' in roles or 'SectionManager' in roles 27 is_manager = context.isManager 31 28 validate = request.has_key("cpsdocument_edit_button") 32 29 items = [] 33 default = {'search_mode': 'name', 34 'review_state': ' admission_applied ',30 default = {'search_mode': 'name', 31 'review_state': 'created', 35 32 'search_string': '' 36 33 } 37 34 38 35 rend,psm,ds = lt.renderLayout(layout_id= 'student_search', 39 36 schema_id= 'student_search', … … 57 54 with_review = state != "all" 58 55 if not term and not with_review: 59 psm = "You must specify a search string when searching in 'All States'"56 psm = "You must specify a search string when searching 'all states'." 60 57 err = True 61 58 elif '*' in term: 62 59 psm = "you cannot use the '*' alone" 63 60 err = True 64 if err: 61 if err: 65 62 return context.students_manager_view(rendered = rend, 66 63 psm = psm, … … 73 70 res = [] 74 71 portal_type_query = {'query':['Student','StudentApplication','StudentPersonal']} 75 st_queries = ('jamb_ id','matric_no','name')72 st_queries = ('jamb_reg_no','matric_no','name') 76 73 onlyreview = with_review and not term 77 74 if onlyreview: … … 86 83 res = catalog(portal_type='Student', 87 84 id = term.strip()) 88 elif what in st_queries: 89 if what == "jamb_ id":85 elif what in st_queries: 86 if what == "jamb_reg_no": 90 87 pt = 'StudentApplication' 91 88 st = "%s*" % term.strip().lower() … … 102 99 except: 103 100 return context.students_manager_view(rendered = rend, 104 psm = 'Search string "%s" not allowed' % term,101 psm = 'Search string "%s" not allowed.' % term, 105 102 #psm = "%s, %s" % (psm,ds), 106 103 students = items, … … 117 114 is_manager = is_manager, 118 115 ) 119 116 120 117 if res: 121 118 for r in res: -
WAeUP_SRP/trunk/skins/waeup_student/student_index.py
r544 r603 17 17 pm = context.portal_membership 18 18 19 20 19 if pm.isAnonymousUser(): 21 20 return redirect("%s/srp_anonymous_view" % context.absolute_url()) 22 21 23 24 member = pm.getAuthenticatedMember() 25 roles = member.getRoles() 26 isManager = "Manager" in roles or "SectionManager" in roles 27 isStudent = "Student" in roles 28 29 if isManager: 22 if context.isManager(): 30 23 return redirect("%s/academics_contents" % context.absolute_url()) 31 if isStudent:24 if context.isStudent(): 32 25 info = context.getStudentInfo() 33 26 student = info['student'] -
WAeUP_SRP/trunk/skins/waeup_student/students_index.py
r584 r603 17 17 pm = context.portal_membership 18 18 19 20 19 if pm.isAnonymousUser(): 21 20 return redirect("%s/srp_anonymous_view" % context.absolute_url()) 22 21 22 campus = context.portal_catalog(meta_type = "University")[-1].getObject() 23 23 24 campus = context.portal_catalog(meta_type = "University")[-1].getObject() 25 member = pm.getAuthenticatedMember() 26 roles = member.getRoles() 27 isManager = "Manager" in roles or "SectionManager" in roles 28 isStudent = "Student" in roles 29 30 if isManager: 24 if context.isManager(): 31 25 return redirect("%s/searchStudents" % campus.students.absolute_url()) 32 if isStudent:26 if context.isStudent(): 33 27 info = context.getStudentInfo() 34 28 student = info['student'] -
WAeUP_SRP/trunk/skins/waeup_student/students_manager_view.pt
r584 r603 29 29 tal:omit-tag="" 30 30 > 31 32 <h3> Search Student Section</h3> 33 34 <br /> 35 31 36 <span tal:replace="structure rendered" /> 32 37 <tal:block tal:condition="python: batch_info and batch_info['nb_pages'] > 1">
Note: See TracChangeset for help on using the changeset viewer.