## Script (Python) "campus_index" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=batch=None ##title= ## # $Id: campus_index.py 1785 2007-05-15 09:47:19Z henrik $ """ return the correct campus_index """ request = context.REQUEST redirect = request.RESPONSE.redirect pm = context.portal_membership if pm.isAnonymousUser(): return redirect("%s/campus_anonymous_view" % request.get('URL1')) campus = context.portal_url.getPortalObject().campus if context.isStudent(): return redirect("%s/students_index" % campus.students.absolute_url()) else: return redirect("%s/campus_view" % campus.absolute_url())