## Script (Python) "index_html"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=batch=None
##title=
##
# $Id: index_html.py 805 2006-11-09 09:38:29Z joachim $
"""
return the correct index_html
"""
request = context.REQUEST
redirect = request.RESPONSE.redirect
pm = context.portal_membership
if pm.isAnonymousUser():
return redirect("%s/srp_anonymous_view" % request.get('URL1'))
if context.isManager():
return redirect("%s/srp_manager_view" % context.absolute_url())
if context.isStudent():
return redirect("%s/srp_anonymous_view" % context.absolute_url())