## 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 campus = context.portal_catalog(meta_type = "University")[-1].getObject() if context.isManager(): if context.portal_type == 'AccoFolder': return context.accommodation.acco_folder_view() elif context.portal_type == 'AccoHall': return context.acco_hall_view() return redirect("%s/srp_manager_view" % context.portal_url()) else: return redirect("%s/srp_anonymous_view" % context.portal_url())