Last change
on this file since 651 was
651,
checked in by Henrik Bettermann, 18 years ago
|
unused files marked
|
File size:
471 bytes
|
Line | |
---|
1 | ##parameters=post_id=None, REQUEST=None |
---|
2 | |
---|
3 | # $Id: course_index_html.py 280 2006-06-30 06:43:03Z joachim $ |
---|
4 | |
---|
5 | """Default view for the Student.""" |
---|
6 | member = context.portal_membership.getAuthenticatedMember() |
---|
7 | if 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() |
---|
13 | return context.course_view_student() |
---|
14 | |
---|
Note: See
TracBrowser for help on using the repository browser.