## Script (Python) "students_indext" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=batch=None ##title= ## # $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $ """ return the current students_index_html """ request = context.REQUEST redirect = request.RESPONSE.redirect pm = context.portal_membership if pm.isAnonymousUser(): return redirect("%s/srp_anonymous_view" % context.portal_url()) campus = context.portal_catalog(meta_type = "University")[-1].getObject() if context.isManager(): return redirect("%s/searchStudents" % campus.students.absolute_url()) if context.isStudent(): info = context.getStudentInfo() student = info['student'] return redirect("%s/student_view" % student.absolute_url())