## Script (Python) "academics_index" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=batch=None ##title= ## # $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $ """ return the appropriate page in the academics section """ request = context.REQUEST redirect = request.RESPONSE.redirect pm = context.portal_membership if pm.isAnonymousUser(): return redirect("%s/academics_contents" % context.absolute_url()) campus = context.portal_catalog(meta_type = "University")[-1].getObject() if context.isManager(): if context.portal_type == 'AccoFolder': return context.accommodation.accommodation_view() elif context.portal_type == 'AccoHall': return context.acco_hall_view() return redirect("%s/academics_contents" % context.absolute_url()) else: return redirect("%s/academics_contents" % context.absolute_url())