Ignore:
Timestamp:
16 Nov 2006, 13:05:12 (18 years ago)
Author:
joachim
Message:

first draft of view for ClearanceOfficers?
steps to make it work:

  1. Create a group CLearanceOfficers
  2. delegate SectionReader? to this Group in students
  3. Put the supposed CO's in this Group
  4. modify the cpsskinstheme like so:

if context.isStaff():

return 'WAeUP_Backoffice'

return 'WAeUP_Student'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/students_index.py

    r832 r874  
    1515request = context.REQUEST
    1616redirect = request.RESPONSE.redirect
    17 pm = context.portal_membership
     17mtool = context.portal_membership
     18member = mtool.getAuthenticatedMember()
    1819
    19 if pm.isAnonymousUser():
     20if mtool.isAnonymousUser():
    2021    return redirect("%s/srp_anonymous_view" % context.portal_url())
    2122
    2223students_url = "%s/campus/students" % (context.portal_url.getPortalPath())
    2324
     25if "ClearanceOfficers" in member.getGroups():
     26    return redirect("%s/co_search" % students_url)
    2427if context.isManager():
    2528    return redirect("%s/searchStudents" % students_url)
Note: See TracChangeset for help on using the changeset viewer.