## 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 937 2006-11-25 09:00:34Z 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.isSectionOfficer(): return redirect("%s/search_students" % students_url) if context.isStudent(): info = context.getStudentInfo() student = info['student'] return redirect("%s/student_view" % student.absolute_url())