source: waeup_product/trunk/skins/waeup_default/university_view.py @ 79

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

=faculty

  • Property svn:keywords set to Id
File size: 677 bytes
Line 
1##parameters=REQUEST=None,psm=None,groups=None
2# $Id: university_view.py 78 2005-10-22 12:10:25Z joachim $
3
4"""Default view for the forum. If post_id is not None, post with id = <post_id>
5will be displayed, otherwise first post will be displayed."""
6
7member = context.portal_membership.getAuthenticatedMember()
8if member:
9    if 'Manager' in member.getRoles():
10        return context.folder_view()
11    elif 'Students' in member.getGroups():
12        return context.students.students_folder_view_student(psm=psm,groups=groups)
13    elif 'StudentManager' in member.getGroups():
14        return context.students.student_folder_view_manager(psm=psm,groups=groups)
15return context.students.students_folder_view_anon(psm=psm,groups=groups)
Note: See TracBrowser for help on using the repository browser.