source: waeup_product/trunk/skins/waeup_student/student_index_html.py @ 89

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

=make workflows work

  • Property svn:keywords set to Id
File size: 410 bytes
Line 
1##parameters=post_id=None, REQUEST=None
2
3# $Id: student_index_html.py 89 2005-10-26 11:54:25Z joachim $
4
5"""Default view for the Student."""
6member = context.portal_membership.getAuthenticatedMember()
7
8#return context.student_view_manager()
9if member:
10    roles = member.getRoles()
11    if 'Manager' in roles:
12        return context.folder_view()
13    elif 'StudentManager' in roles:
14        return context.student_view_manager()
15return context.student_view_student()
Note: See TracBrowser for help on using the repository browser.