source: WAeUP_SRP/branches/srpp_branch/skins/waeup_faculty/course_index_html.py @ 17388

Last change on this file since 17388 was 96, checked in by joachim, 19 years ago

=adding and editing of several types

  • Property svn:keywords set to Id
File size: 415 bytes
Line 
1##parameters=post_id=None, REQUEST=None
2
3# $Id: course_index_html.py 96 2005-10-27 06:51:08Z joachim $
4
5"""Default view for the Student."""
6member = context.portal_membership.getAuthenticatedMember()
7if not context.portal_membership.isAnonymousUser():
8    roles = member.getRoles()
9    if 'Manager' in roles:
10        return context.cpsdocument_view()
11    elif 'StudentManager' in roles:
12        return context.course_view_manager()
13return context.course_view_student()
14
Note: See TracBrowser for help on using the repository browser.