## Script (Python) "student_index" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=batch=None ##title= ## # $Id: student_index.py 999 2006-12-06 10:46:32Z joachim $ """ return the current student_index_html """ request = context.REQUEST redirect = request.RESPONSE.redirect pm = context.portal_membership member = pm.getAuthenticatedMember() if context.isStaff(): if context.portal_type == 'StudentStudyCourse': return context.study_course_view() elif context.portal_type == 'StudentStudyLevel': return context.study_level_view() elif context.portal_type == 'StudentClearance': return context.clearance_view() elif context.portal_type == 'Student': return redirect("%s/student_view" % context.absolute_url()) return redirect("%s/waeup_document_view" % context.absolute_url()) if context.isStudent(): students = context.portal_url.getPortalObject().campus.students student = getattr(students,str(member)) return redirect("%s/student_view" % student.absolute_url()) return redirect("%s/srp_anonymous_view" % context.absolute_url())