##parameters=REQUEST=None,psm=None,groups=None # $Id: academics_view.py 114 2005-10-28 10:58:58Z joachim $ """Default view for the forum. If post_id is not None, post with id = will be displayed, otherwise first post will be displayed.""" member = context.portal_membership.getAuthenticatedMember() if not context.portal_membership.isAnonymousUser(): if 'Manager' in member.getRoles(): return context.folder_view() index = getattr(context,'documents',None) if index: fp = getattr(index,'academicsfrontpage',None) if fp: return fp() return context.academics.academics_view_all(psm=psm)