source: waeup_product/trunk/skins/waeup_faculty/course_index_html.py @ 80

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

=faculty

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