source: WAeUP_SRP/trunk/skins/waeup_academics/department_index_html.py~ @ 294

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

=renamed skins/waeup_faculty to academics

File size: 470 bytes
RevLine 
[96]1##parameters=psm=None, REQUEST=None
[80]2
[96]3# $Id: department_index_html.py 91 2005-10-26 12:30:11Z joachim $
[80]4
5"""Default view for a Faculty."""
6member = context.portal_membership.getAuthenticatedMember()
[96]7if not context.portal_membership.isAnonymousUser():
[91]8    roles = member.getRoles()
9    if 'Manager' in roles:
10        return context.folder_view()
11    elif 'StudentManager' in roles:
[84]12        return context.department_view_manager()
[91]13return context.department_view_student()
Note: See TracBrowser for help on using the repository browser.