## Script (Python) "academics_index" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=batch=None ##title= ## # $Id: acco_folder_index.py 805 2006-11-09 09:38:29Z 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())