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