source: waeup_product/trunk/skins/waeup_student/accommodation_index_html.py @ 152

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

bug fixes

  • Property svn:keywords set to Id
File size: 558 bytes
Line 
1##parameters=REQUEST=None,psm=None,groups=None
2
3# $Id: accommodation_index_html.py 119 2005-10-28 19:44:25Z henrik $
4
5"""Default view for the Accommodation.
6"""
7
8member = context.portal_membership.getAuthenticatedMember()
9if not context.portal_membership.isAnonymousUser():
10    roles = member.getRoles()
11    if 'Manager' in roles:
12        return context.accommodation_view_manager(psm=psm)
13    elif 'StudentManager' in roles:
14        return context.accommodation_view_manager(psm=psm)
15    elif 'Student' in roles:
16        return context.accommodation_view_student(psm=psm)
17return context.accommodation_view_all(psm=psm)
Note: See TracBrowser for help on using the repository browser.