##parameters=post_id=None, REQUEST=None # $Id: course_index_html.py 96 2005-10-27 06:51:08Z joachim $ """Default view for the Student.""" member = context.portal_membership.getAuthenticatedMember() if not context.portal_membership.isAnonymousUser(): roles = member.getRoles() if 'Manager' in roles: return context.cpsdocument_view() elif 'StudentManager' in roles: return context.course_view_manager() return context.course_view_student()