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

Last change on this file since 145 was 116, checked in by Henrik Bettermann, 19 years ago

xx

  • Property svn:keywords set to Id
File size: 566 bytes
Line 
1##parameters=REQUEST=None,psm=None,groups=None
2# $Id: university_view.py 116 2005-10-28 11:29:18Z henrik $
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()
8
9if not context.portal_membership.isAnonymousUser():
10    if 'UniversityManager' in member.getRoles():
11        return context.folder_view()
12index = getattr(context,'documents',None)
13if index:
14    fp = getattr(index,'frontpage',None)
15    if fp:
16        return fp()
17return context.university_view_all(psm=psm)
Note: See TracBrowser for help on using the repository browser.