source: WAeUP_SRP/trunk/skins/waeup_academics/course_index_html.py @ 599

Last change on this file since 599 was 280, checked in by joachim, 18 years ago

=renamed skins/waeup_faculty to academics

  • Property svn:keywords set to Id
File size: 415 bytes
RevLine 
[80]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."""
6member = context.portal_membership.getAuthenticatedMember()
[96]7if not context.portal_membership.isAnonymousUser():
[89]8    roles = member.getRoles()
9    if 'Manager' in roles:
[80]10        return context.cpsdocument_view()
[89]11    elif 'StudentManager' in roles:
[80]12        return context.course_view_manager()
[89]13return context.course_view_student()
14
Note: See TracBrowser for help on using the repository browser.