Changeset 883
- Timestamp:
- 17 Nov 2006, 08:18:52 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 6 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/PatchCPSUserFolderUserFolder.py
r881 r883 73 73 if not hasattr(real_object,'portal_type'): 74 74 break 75 if real_object.portal_type != "Student":75 if real_object.portal_type not in ("Student","StudentClearance"): 76 76 break 77 77 #import pdb;pdb.set_trace() -
WAeUP_SRP/trunk/PatchCPSUserFolderUserFolderWithGroups.py
r881 r883 123 123 return None 124 124 125 from Products.CPSUserFolder import UserFolderWithGroups126 UserFolderWithGroups.getRolesInContext = getRolesInContext127 UserFolderWithGroups.allowed = allowed125 from Products.CPSUserFolder.UserFolderWithGroups import PatchBasicUser 126 PatchBasicUser.getRolesInContext = getRolesInContext 127 PatchBasicUser.allowed = allowed -
WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_subobject_wf/definition.xml
r785 r883 94 94 95 95 <guard> 96 <guard-role>ClearanceOfficer</guard-role> 96 97 <guard-role>Manager</guard-role> 97 98 <guard-role>SectionManager</guard-role> -
WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml
r880 r883 49 49 <permission-map name="Modify portal content" 50 50 acquired="True"> 51 <permission-role>ClearanceOfficer</permission-role> 51 52 </permission-map> 52 53 <permission-map name="View" acquired="True"> … … 57 58 <exit-transition transition_id="create_content"/> 58 59 <exit-transition transition_id="reject_clearance"/> 60 <permission-map name="Modify portal content" 61 acquired="True"> 62 <permission-role>ClearanceOfficer</permission-role> 63 </permission-map> 59 64 <permission-map name="View" acquired="True"> 60 65 <permission-role>Owner</permission-role> … … 65 70 </state> 66 71 <state state_id="finally_rejected" title=""> 72 <permission-map name="Modify portal content" 73 acquired="True"> 74 <permission-role>ClearanceOfficer</permission-role> 75 </permission-map> 67 76 <permission-map name="View" acquired="True"> 68 77 <permission-role>Owner</permission-role> -
WAeUP_SRP/trunk/skins/waeup_student/co_searchStudents.py
r881 r883 165 165 info = context.getStudentInfo(item) 166 166 students.append(info) 167 return context.co_search_view(rendered = rend, 168 psm = "%d,%d matching Students found QS = %s" %\ 169 (len(review_set),len(search_set),query_step), 167 return context.students_co_view(rendered = rend, 168 psm = "", 169 #psm = "%d,%d matching Students found QS = %s" %\ 170 # (len(review_set),len(search_set),query_step), 170 171 #psm = "%d found QS = %s items: %s" % (len(items),query_step,items), 171 172 students = students, 172 173 is_manager = is_manager, 173 174 ) 174 return context. co_search_view(rendered = rend,175 return context.students_co_view(rendered = rend, 175 176 psm = """Step: %s found: %s Your search for "%s" in %s with state %s failed.<br\>%s""" % (query_step,len(items),st,what,state,bools), 176 177 students = students, -
WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py
r867 r883 19 19 member = mtool.getAuthenticatedMember() 20 20 path_info = request.get('PATH_INFO').split('/') 21 roles = member.getRoles()22 21 23 22 info = {} … … 34 33 else: 35 34 student_id = student.getId() 35 roles = member.getRoles() 36 36 student_path = "%s/campus/students/%s" % (context.portal_url.getPortalPath(),student_id) 37 37 student = context.restrictedTraverse(student_path,default=None) -
WAeUP_SRP/trunk/skins/waeup_student/students_co_view.pt
r881 r883 64 64 <td><span tal:replace="python: student['app_doc'].jamb_reg_no" /></td> 65 65 <td><a href="id" 66 tal:attributes="href string:${student/student/clearance/absolute_url} "66 tal:attributes="href string:${student/student/clearance/absolute_url}/clearance_edit_form_manager" 67 67 tal:content="student/review_state"></a></td> 68 68 <td>
Note: See TracChangeset for help on using the changeset viewer.