source: WAeUP_SRP/branches/srp_backend/skins/waeup_student/jamb_index_html.py @ 446

Last change on this file since 446 was 438, checked in by Henrik Bettermann, 18 years ago
File size: 501 bytes
Line 
1##parameters=post_id=None, REQUEST=None
2
3# $Id: jamb_index_html.py 91 2005-10-26 12:30:11Z joachim $
4
5"""Default view for the Student."""
6member = context.portal_membership.getAuthenticatedMember()
7
8#return context.student_view_manager()
9if 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.jamb_view_manager()
15return context.jamb_view_student()
Note: See TracBrowser for help on using the repository browser.