## 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 901 2006-11-20 07:33:16Z henrik $ """ return the correct campus_index_html """ 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_catalog(meta_type = "University")[-1].getObject() if context.isStudent(): return redirect("%s/students_index" % campus.students.absolute_url()) else: return redirect("%s/campus_view" % campus.absolute_url())