## 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 901 2006-11-20 07:33:16Z henrik $
"""
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'))
# return redirect("http://uniben.edu/index.php")
elif context.isStudent():
return redirect("%s/srp_anonymous_view" % context.absolute_url())
else:
return redirect("%s/srp_view" % context.absolute_url())