Last change
on this file since 287 was
280,
checked in by joachim, 19 years ago
|
=renamed skins/waeup_faculty to academics
|
-
Property svn:keywords set to
Id
|
File size:
574 bytes
|
Rev | Line | |
---|
[114] | 1 | ##parameters=REQUEST=None,psm=None,groups=None |
---|
| 2 | # $Id: academics_view.py 280 2006-06-30 06:43:03Z joachim $ |
---|
| 3 | |
---|
| 4 | """Default view for the forum. If post_id is not None, post with id = <post_id> |
---|
| 5 | will be displayed, otherwise first post will be displayed.""" |
---|
| 6 | |
---|
| 7 | member = context.portal_membership.getAuthenticatedMember() |
---|
| 8 | |
---|
| 9 | if not context.portal_membership.isAnonymousUser(): |
---|
| 10 | if 'Manager' in member.getRoles(): |
---|
| 11 | return context.folder_view() |
---|
| 12 | index = getattr(context,'documents',None) |
---|
| 13 | if index: |
---|
| 14 | fp = getattr(index,'academicsfrontpage',None) |
---|
| 15 | if fp: |
---|
| 16 | return fp() |
---|
| 17 | return context.academics.academics_view_all(psm=psm) |
---|
Note: See
TracBrowser for help on using the repository browser.