Changeset 603 for WAeUP_SRP/trunk
- Timestamp:
- 1 Oct 2006, 10:21:09 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r584 r603 115 115 logger.info('%(tr_count)s: Creating Student with ID %(sid)s Matric_no %(matric_no)s ' % vars()) 116 116 s = getattr(self,sid) 117 self.portal_registration.addMember(sid, 117 self.portal_registration.addMember(sid, 118 118 'uNsEt' , 119 119 roles=('Member', … … 367 367 student.application.manage_setLocalRoles(sid, ['Owner',]) 368 368 student.personal.manage_setLocalRoles(sid, ['Owner',]) 369 369 370 370 security.declareProtected(View,"Title") 371 371 def Title(self): … … 407 407 """make the student a member""" 408 408 membership = self.portal_membership 409 membership.addMember(sid, 409 membership.addMember(sid, 410 410 password , 411 411 roles=('Member', … … 443 443 per_doc.edit(mapping = dp) 444 444 per.manage_setLocalRoles(self.getId(), ['Owner',]) 445 self.portal_workflow.doActionFor(per,'open',dest_container=per)446 445 #self.portal_workflow.doActionFor(per,'open',dest_container=per) 446 447 447 ###) 448 448 -
WAeUP_SRP/trunk/profiles/default/layouts/student_search.xml
r596 r603 12 12 <element value="review_state"/> 13 13 </property> 14 <property name="label"> Review State</property>15 <property name="label_edit"> Review State</property>14 <property name="label">Search for students in state</property> 15 <property name="label_edit">Search for students in state</property> 16 16 <property name="readonly_layout_modes"/> 17 17 <property name="hidden_layout_modes"/> … … 20 20 </widget> 21 21 <widget name="search_mode" meta_type="Generic Select Widget"> 22 <property name="title">Search mode</property>22 <property name="title">Search Mode</property> 23 23 <property name="fields"> 24 24 <element value="search_mode"/> 25 25 </property> 26 26 <property name="is_required">True</property> 27 <property name="label"> Search for</property>28 <property name="label_edit"> Search for</property>27 <property name="label">and</property> 28 <property name="label_edit">and</property> 29 29 <property name="readonly_layout_modes"/> 30 30 <property name="hidden_layout_modes"/> 31 31 <property name="hidden_readonly_layout_modes"/> 32 32 <property name="vocabulary">student_search_mode</property> 33 <property name="render_format">radio</property>34 33 </widget> 35 34 <widget name="search_string" meta_type="String Widget"> 36 <property name="title">Search string</property>35 <property name="title">Search String</property> 37 36 <property name="fields"> 38 37 <element value="search_string"/> 39 38 </property> 40 <property name="label"> Search for</property>41 <property name="label_edit"> Search for</property>39 <property name="label">beginning with</property> 40 <property name="label_edit">beginning with</property> 42 41 <property name="readonly_layout_modes"/> 43 42 <property name="hidden_layout_modes"/> … … 47 46 <table> 48 47 <row> 49 <cell name="review_state" ncols=" 2"/>48 <cell name="review_state" ncols="3"/> 50 49 </row> 51 50 <row> 51 <cell name="search_mode" ncols="2"/> 52 52 <cell name="search_string"/> 53 <cell name="search_mode"/>54 53 </row> 55 54 </table> 56 55 </object> 56 -
WAeUP_SRP/trunk/profiles/default/vocabularies/searchable_student_states.xml
r600 r603 5 5 <property name="description"></property> 6 6 <property name="acl_write_roles">Manager</property> 7 <item key="all" msgid="">All States</item> 8 <item key="admission_applied " msgid="">Applied for Admission</item> 9 <item key="created" msgid="">Data Imported</item> 10 <item key="admission_rejected" msgid="">Admission rejected</item> 11 <item key="admitted" msgid="">Admitted</item> 7 <item key="all" msgid="">all states</item> 8 <item key="created" msgid="">data imported</item> 9 <item key="application_pin_entered" msgid="">application pin entered</item> 10 <item key="admission_applied" msgid="">applied for admission</item> 11 <item key="pume_passed" msgid="">pume passed</item> 12 <item key="pume_failed" msgid="">pume failed</item> 13 <item key="admission_rejected" msgid="">admission rejected</item> 14 <item key="finally_rejected" msgid="">finally rejected</item> 15 <item key="admitted" msgid="">admitted</item> 16 <item key="clearance_pin_entered" msgid="">clearance pin entered</item> 17 <item key="clearance_requested" msgid="">clearance requested</item> 18 <item key="cleared_and_validated" msgid="">cleared and validated</item> 12 19 </object> -
WAeUP_SRP/trunk/profiles/default/vocabularies/student_search_mode.xml
r596 r603 5 5 <property name="description"></property> 6 6 <property name="acl_write_roles">Manager</property> 7 <item key="student_id" msgid="">Student Id </item>7 <item key="student_id" msgid="">Student Id (complete ids only)</item> 8 8 <item key="name" msgid="">Name</item> 9 <item key="matric_no" msgid="">Matriculation N umber</item>10 <item key="jamb_ id" msgid="">Jamb Id</item>9 <item key="matric_no" msgid="">Matriculation No</item> 10 <item key="jamb_reg_no" msgid="">Jamb Registration No</item> 11 11 </object> -
WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_subobject_wf/definition.xml
r572 r603 5 5 meta_type="CPS Workflow"> 6 6 <permission>Modify portal content</permission> 7 <permission>View</permission> 7 8 <permission>WAeUPModify own content</permission> 8 <permission>View</permission>9 9 <state state_id="closed" title=""> 10 10 <exit-transition transition_id="open"/> 11 11 </state> 12 12 <state state_id="created" title=""> 13 <exit-transition transition_id="create_content"/> 14 <exit-transition transition_id="enter_application_pin"/> 13 <exit-transition transition_id="close"/> 15 14 <exit-transition transition_id="open"/> 16 15 <permission-map name="Modify portal content" … … 20 19 <permission-role>SectionManager</permission-role> 21 20 </permission-map> 22 <permission-map name="WAeUPModify own content"23 acquired="False">24 <permission-role>Owner</permission-role>25 </permission-map>26 21 <permission-map name="View" acquired="False"> 27 22 <permission-role>Owner</permission-role> 28 23 <permission-role>Manager</permission-role> 29 24 <permission-role>SectionManager</permission-role> 25 </permission-map> 26 <permission-map name="WAeUPModify own content" 27 acquired="False"> 28 <permission-role>Owner</permission-role> 30 29 </permission-map> 31 30 </state> … … 38 37 <permission-role>Manager</permission-role> 39 38 </permission-map> 39 <permission-map name="View" acquired="False"> 40 <permission-role>Owner</permission-role> 41 </permission-map> 40 42 <permission-map name="WAeUPModify own content" 41 43 acquired="False"> 42 <permission-role>Owner</permission-role>43 </permission-map>44 <permission-map name="View" acquired="False">45 44 <permission-role>Owner</permission-role> 46 45 </permission-map> … … 51 50 52 51 <guard> 53 52 <guard-permission>WAeUPModify own content</guard-permission> 54 53 </guard> 55 54 </transition> … … 68 67 69 68 <guard> 70 69 <guard-permission>WAeUPModify own content</guard-permission> 71 70 </guard> 72 71 </transition> 73 72 </cps-workflow> 73 -
WAeUP_SRP/trunk/skins/waeup_academics/academics_index.py
r600 r603 21 21 22 22 campus = context.portal_catalog(meta_type = "University")[-1].getObject() 23 member = pm.getAuthenticatedMember()24 23 25 24 if context.isManager(): -
WAeUP_SRP/trunk/skins/waeup_academics/academics_index_view.pt
r586 r603 35 35 <strong tal:content="row/title" /></a> </td> 36 36 <td tal:content="row/id"> </td> 37 <td><a href="edit" tal:attributes="href string:${row/url}/cpsdocument_edit_form">[edit]</a></td> 37 38 <td> 39 <a tal:condition="row/is_editable" 40 href="edit" tal:attributes="href string:${row/url}/external_edit_form" 41 target="edit" 42 onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')"> 43 [edit] 44 </a> 45 </td> 46 38 47 </tr> 39 48 </table> -
WAeUP_SRP/trunk/skins/waeup_academics/courses_index_view.pt
r598 r603 66 66 <td tal:content="row/id"> </td> 67 67 <td tal:condition="row/is_editable" tal:content="row/review_state"> </td> 68 <td tal:condition="row/is_editable"><a href="edit" tal:attributes="href string:${row/url}/cpsdocument_edit_form">[edit]</a></td> 68 <td> 69 <a tal:condition="row/is_editable" 70 href="edit" tal:attributes="href string:${row/url}/external_edit_form" 71 target="edit" 72 onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')"> 73 [edit] 74 </a> 75 </td> 69 76 </tr> 70 77 </span> -
WAeUP_SRP/trunk/skins/waeup_academics/getCertificateInfo.py
r600 r603 15 15 16 16 wf = context.portal_workflow 17 mtool = context.portal_membership18 member = mtool.getAuthenticatedMember()19 17 path_info = request.get('PATH_INFO').split('/') 20 18 21 19 info = {} 22 member_id = str(member)23 roles = member.getRoles()24 20 info['is_manager'] = context.isManager() 25 21 info['is_student'] = context.isStudent() -
WAeUP_SRP/trunk/skins/waeup_academics/getCoursesCertificatesInfo.py
r600 r603 15 15 16 16 wf = context.portal_workflow 17 mtool = context.portal_membership18 member = mtool.getAuthenticatedMember()19 17 path_info = request.get('PATH_INFO').split('/') 20 18 21 19 info = {} 22 member_id = str(member)23 roles = member.getRoles()24 20 info['is_manager'] = context.isManager() 25 21 info['is_student'] = context.isStudent() -
WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py
r600 r603 15 15 16 16 wf = context.portal_workflow 17 path_info = request.get('PATH_INFO').split('/') 17 18 mtool = context.portal_membership 18 member = mtool.getAuthenticatedMember()19 path_info = request.get('PATH_INFO').split('/')20 19 21 20 info = {} 22 member_id = str(member)23 21 #dep_id = request.get('PATH_TRANSLATED').split('/')[-2] 24 22 dep_id = context.aq_parent.getId() 25 roles = member.getRoles()26 23 info['is_manager'] = context.isManager() 27 24 info['is_student'] = context.isStudent() -
WAeUP_SRP/trunk/skins/waeup_academics/getDocumentInfo.py
r556 r603 15 15 16 16 wf = context.portal_workflow 17 mtool = context.portal_membership18 member = mtool.getAuthenticatedMember()19 17 path_info = request.get('PATH_INFO').split('/') 20 18 21 19 info = {} 22 member_id = str(member) 23 roles = member.getRoles() 24 info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles 25 info['is_student'] = 'Student' in roles 20 info['is_manager'] = context.isManager 21 info['is_student'] = context.isStudent 26 22 info['doc'] = context.getContent() 27 23 return info -
WAeUP_SRP/trunk/skins/waeup_academics/getFacultiesInfo.py
r600 r603 16 16 wf = context.portal_workflow 17 17 mtool = context.portal_membership 18 member = mtool.getAuthenticatedMember()19 18 path_info = request.get('PATH_INFO').split('/') 20 19 21 20 info = {} 22 member_id = str(member)23 roles = member.getRoles()24 21 info['is_manager'] = context.isManager() 25 info['is_student'] = context.isStudent() 22 info['is_student'] = context.isStudent() 26 23 info['action'] = "%s" % context.campus.absolute_url() 27 24 info['choosen_ids'] = request.get('ids',[]) … … 35 32 row['title'] = fd.LongTitle() 36 33 row['url'] = fo.absolute_url() 34 row['is_editable'] = mtool.checkPermission('Modify portal content', fo) 37 35 items.append(row) 38 36 info['items'] = items -
WAeUP_SRP/trunk/skins/waeup_academics/getLevelInfo.py
r600 r603 15 15 16 16 wf = context.portal_workflow 17 mtool = context.portal_membership18 member = mtool.getAuthenticatedMember()19 17 path_info = request.get('PATH_INFO').split('/') 20 18 try: … … 24 22 p = 1 25 23 info = {} 26 member_id = str(member)27 24 pt = request.get('PATH_TRANSLATED').split('/') 28 25 … … 30 27 cert_id = pt[-(2+p)] 31 28 level_id = pt[-(1+p)] 32 roles = member.getRoles()33 29 info['is_manager'] = context.isManager() 34 30 info['is_student'] = context.isStudent() … … 51 47 row['id'] = r.getId 52 48 row['title'] = rd.Title() 53 row['core'] = rd.core_or_elective 49 row['core'] = rd.core_or_elective 54 50 row['semester'] = rd.semester 55 51 row['url'] = ro.absolute_url() -
WAeUP_SRP/trunk/skins/waeup_academics/level_index_view.pt
r598 r603 41 41 <td tal:content="python: test(row['core'],'core','elective')"></td> 42 42 <td tal:condition="row/is_editable" tal:content="row/review_state"> </td> 43 <td tal:condition="row/is_editable" ><a href="edit" tal:attributes="href string:${row/url}/cpsdocument_edit_form">[edit]</a></td> 43 <td> 44 <a tal:condition="row/is_editable" 45 href="edit" tal:attributes="href string:${row/url}/external_edit_form" 46 target="edit" 47 onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')"> 48 [edit] 49 </a> 50 </td> 44 51 </tr> 45 52 </span> -
WAeUP_SRP/trunk/skins/waeup_academics/searchAcademics.py
r600 r603 18 18 wf = context.portal_workflow 19 19 catalog = context.portal_catalog 20 mtool = context.portal_membership21 member = mtool.getAuthenticatedMember()22 20 lt = context.portal_layouts 23 21 pr = context.portal_registration 24 22 path_info = request.get('PATH_INFO').split('/') 25 roles = member.getRoles() 26 is_manager = 'Manager' in roles or 'SectionManager' in roles 23 is_manager = context.isManager 27 24 validate = request.has_key("cpsdocument_edit_button") 28 25 items = [] 29 default = {'search_mode': 'course', 30 'review_state': 'unchecked', 26 default = {'search_mode': 'course', 27 'review_state': 'unchecked', 31 28 'search_string': '' 32 29 } 33 30 34 31 rend,psm,ds = lt.renderLayout(layout_id= 'academics_search', 35 32 schema_id= 'academics_search', … … 52 49 if state == " ----- ": 53 50 state = '' 54 if not term and what in ('student_edit','jamb_ id','name','matric_no'):51 if not term and what in ('student_edit','jamb_reg_no','name','matric_no'): 55 52 return context.academics_search_view(rendered = rend, 56 53 psm = "You must specify a search string", … … 69 66 res = catalog(portal_type='Student', 70 67 id = term.strip()) 71 elif what == "jamb_ id":68 elif what == "jamb_reg_no": 72 69 res = catalog(portal_type='StudentApplication', 73 70 SearchableText="%s*" % term.strip().lower()) -
WAeUP_SRP/trunk/skins/waeup_custom/getCPSCandidateLocalRoles.py
r525 r603 18 18 mtool = getToolByName(context, 'portal_membership') 19 19 #return mtool.getCPSCandidateLocalRoles(context) 20 return [' Manager','SectionReader','SectionManager','Student','Staff']20 return ['SectionReader','SectionManager'] -
WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py
r551 r603 21 21 to_member_home = False 22 22 to_workspaces = False 23 has_home = mtool.getHomeFolder()24 if has_home:25 to_member_home = True26 if not has_home and mtool.checkPermission('View', portal.workspaces):27 to_workspaces = True23 ## has_home = mtool.getHomeFolder() 24 ## if has_home: 25 ## to_member_home = True 26 ## if not has_home and mtool.checkPermission('View', portal.workspaces): 27 ## to_workspaces = True 28 28 return to_member_home, to_workspaces 29 29 … … 87 87 return response.redirect("%s/passport_entry_view" % student.absolute_url()) 88 88 return response.redirect("%s" % student.absolute_url()) 89 89 90 90 elif to_member_home: 91 91 redirect_url = mtool.getHomeFolder().absolute_url() -
WAeUP_SRP/trunk/skins/waeup_default/campus_index.py
r543 r603 13 13 """ 14 14 15 16 15 request = context.REQUEST 17 16 redirect = request.RESPONSE.redirect … … 22 21 23 22 campus = context.portal_catalog(meta_type = "University")[-1].getObject() 24 member = pm.getAuthenticatedMember()25 roles = member.getRoles()26 isManager = "Manager" in roles or "SectionManager" in roles27 isStudent = "Student" in roles28 23 29 if isManager:24 if context.isManager(): 30 25 return redirect("%s/campus_manager_view" % campus.absolute_url()) 31 26 32 if isStudent:27 if context.isStudent(): 33 28 return redirect("%s/students_index" % campus.students.absolute_url()) 34 29 -
WAeUP_SRP/trunk/skins/waeup_default/index_html.py
r543 r603 13 13 """ 14 14 15 16 15 request = context.REQUEST 17 16 redirect = request.RESPONSE.redirect … … 21 20 return redirect("%s/srp_anonymous_view" % request.get('URL1')) 22 21 23 member = pm.getAuthenticatedMember() 24 roles = member.getRoles() 25 isManager = "Manager" in roles or "SectionManager" in roles 26 isStudent = "Student" in roles 27 28 if isManager: 22 if context.isManager(): 29 23 return redirect("%s/srp_manager_view" % context.absolute_url()) 30 24 31 if isStudent:25 if context.isStudent(): 32 26 return redirect("%s/srp_anonymous_view" % context.absolute_url()) 33 27 -
WAeUP_SRP/trunk/skins/waeup_default/isManager.py
r600 r603 10 10 # $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $ 11 11 """ 12 return True if the member is considered a Manager in this context 12 return True if the member is considered a Manager, 13 consider all non-Student members to be Managers 14 13 15 """ 14 16 request = context.REQUEST … … 18 20 member = mtool.getAuthenticatedMember() 19 21 path_info = request.get('PATH_INFO').split('/') 20 roles = member.getRolesInContext(context) 22 #roles = member.getRolesInContext(context) 23 roles = member.getRoles() 21 24 isStudent = "Student" in roles 22 25 isStaff = not isStudent 23 isManager = "Manager" in roles or "SectionManager" in roles or isStaff 26 #isManager = "Manager" in roles or "SectionManager" in roles or isStaff 27 isManager = isStaff 24 28 return isManager -
WAeUP_SRP/trunk/skins/waeup_default/isStudent.py
r600 r603 10 10 # $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $ 11 11 """ 12 return True if the member is considered a Student in this context12 return True if the member is considered a Student 13 13 """ 14 14 request = context.REQUEST … … 18 18 member = mtool.getAuthenticatedMember() 19 19 path_info = request.get('PATH_INFO').split('/') 20 roles = member.getRolesInContext(context) 20 #roles = member.getRolesInContext(context) 21 roles = member.getRoles() # Student role is global 21 22 isStudent = "Student" in roles 22 isStaff = not isStudent23 isManager = "Manager" in roles or "SectionManager" in roles or isStaff24 23 return isStudent -
WAeUP_SRP/trunk/skins/waeup_default/layout_search_edit.pt
r584 r603 22 22 <div class=''> 23 23 <div class='documentFields'> 24 <table width=" 80%" cellpadding="2" cellspacing="2" summary="Form layout">24 <table width="" cellpadding="2" cellspacing="2" summary="Form layout"> 25 25 <tr tal:repeat="row layout/rows" valign="top"> 26 26 <td tal:repeat="cell row" -
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.