## 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 920 2006-11-22 08:27:58Z henrik $ """ 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/search_students" % students_url) if context.isSectionManager(): return redirect("%s/search_students" % students_url) if context.isStudent(): info = context.getStudentInfo() student = info['student'] return redirect("%s/student_view" % student.absolute_url())