source: WAeUP_SRP/trunk/skins/waeup_academics/faculty_index_html.py @ 295

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

=renamed skins/waeup_faculty to academics

  • Property svn:keywords set to Id
File size: 406 bytes
RevLine 
[96]1##parameters=psm=None, REQUEST=None
[78]2
3# $Id: faculty_index_html.py 280 2006-06-30 06:43:03Z joachim $
4
5"""Default view for a Faculty."""
6member = context.portal_membership.getAuthenticatedMember()
7
[96]8if not context.portal_membership.isAnonymousUser():
[89]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()
14return context.faculty_view_student()
Note: See TracBrowser for help on using the repository browser.