Changeset 883 for WAeUP_SRP/trunk


Ignore:
Timestamp:
17 Nov 2006, 08:18:52 (18 years ago)
Author:
joachim
Message:

getRolesInContext now does additional checks for ClearanceOfficer?.

Location:
WAeUP_SRP/trunk
Files:
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/PatchCPSUserFolderUserFolder.py

    r881 r883  
    7373        if not hasattr(real_object,'portal_type'):
    7474            break
    75         if real_object.portal_type != "Student":
     75        if real_object.portal_type not in ("Student","StudentClearance"):
    7676            break
    7777        #import pdb;pdb.set_trace()
  • WAeUP_SRP/trunk/PatchCPSUserFolderUserFolderWithGroups.py

    r881 r883  
    123123    return None
    124124
    125 from Products.CPSUserFolder import UserFolderWithGroups 
    126 UserFolderWithGroups.getRolesInContext = getRolesInContext
    127 UserFolderWithGroups.allowed = allowed
     125from Products.CPSUserFolder.UserFolderWithGroups import PatchBasicUser 
     126PatchBasicUser.getRolesInContext = getRolesInContext
     127PatchBasicUser.allowed = allowed
  • WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_subobject_wf/definition.xml

    r785 r883  
    9494
    9595  <guard>
     96   <guard-role>ClearanceOfficer</guard-role>
    9697   <guard-role>Manager</guard-role>
    9798   <guard-role>SectionManager</guard-role>
  • WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml

    r880 r883  
    4949  <permission-map name="Modify portal content"
    5050                  acquired="True">
     51    <permission-role>ClearanceOfficer</permission-role>
    5152  </permission-map>
    5253  <permission-map name="View" acquired="True">
     
    5758  <exit-transition transition_id="create_content"/>
    5859  <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>
    5964  <permission-map name="View" acquired="True">
    6065   <permission-role>Owner</permission-role>
     
    6570 </state>
    6671 <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>
    6776  <permission-map name="View" acquired="True">
    6877   <permission-role>Owner</permission-role>
  • WAeUP_SRP/trunk/skins/waeup_student/co_searchStudents.py

    r881 r883  
    165165            info = context.getStudentInfo(item)
    166166            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),
    170171                             #psm = "%d found QS = %s items: %s" % (len(items),query_step,items),
    171172                             students = students,
    172173                             is_manager = is_manager,
    173174                             )
    174 return context.co_search_view(rendered = rend,
     175return context.students_co_view(rendered = rend,
    175176                             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),
    176177                             students = students,
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r867 r883  
    1919member = mtool.getAuthenticatedMember()
    2020path_info = request.get('PATH_INFO').split('/')
    21 roles = member.getRoles()
    2221
    2322info = {}
     
    3433else:
    3534    student_id = student.getId()
     35roles = member.getRoles()
    3636student_path = "%s/campus/students/%s" % (context.portal_url.getPortalPath(),student_id)
    3737student = context.restrictedTraverse(student_path,default=None)
  • WAeUP_SRP/trunk/skins/waeup_student/students_co_view.pt

    r881 r883  
    6464                <td><span tal:replace="python: student['app_doc'].jamb_reg_no" /></td>   
    6565                <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"
    6767                       tal:content="student/review_state"></a></td>   
    6868                <td>
Note: See TracChangeset for help on using the changeset viewer.