## Script (Python) "students_indext" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=batch=None ##title= ## # $Id: students_index.py 874 2006-11-16 13:05:12Z joachim $ """ return the current students_index_html """ request = context.REQUEST redirect = request.RESPONSE.redirect mtool = context.portal_membership member = mtool.getAuthenticatedMember() if mtool.isAnonymousUser(): return redirect("%s/srp_anonymous_view" % context.portal_url()) students_url = "%s/campus/students" % (context.portal_url.getPortalPath()) if "ClearanceOfficers" in member.getGroups(): return redirect("%s/co_search" % students_url) if context.isManager(): return redirect("%s/searchStudents" % students_url) if context.isStudent(): info = context.getStudentInfo() student = info['student'] return redirect("%s/student_view" % student.absolute_url())