Last change
on this file was
96,
checked in by joachim, 19 years ago
|
=adding and editing of several types
|
-
Property svn:keywords set to
Id
|
File size:
474 bytes
|
Line | |
---|
1 | ##parameters=post_id=None, REQUEST=None |
---|
2 | |
---|
3 | # $Id: student_personal_index_html.py 96 2005-10-27 06:51:08Z joachim $ |
---|
4 | |
---|
5 | """Default view for the Student.""" |
---|
6 | member = context.portal_membership.getAuthenticatedMember() |
---|
7 | |
---|
8 | #return context.student_view_manager() |
---|
9 | if not context.portal_membership.isAnonymousUser(): |
---|
10 | roles = member.getRoles() |
---|
11 | if 'Manager' in roles: |
---|
12 | return context.cpsdocument_view() |
---|
13 | elif 'StudentManager' in roles: |
---|
14 | return context.student_personal_view_manager() |
---|
15 | return context.student_personal_view_student() |
---|
Note: See
TracBrowser for help on using the repository browser.