##parameters=REQUEST=None,psm=None,groups=None # $Id: accommodation_index_html.py 119 2005-10-28 19:44:25Z henrik $ """Default view for the Accommodation. """ member = context.portal_membership.getAuthenticatedMember() if not context.portal_membership.isAnonymousUser(): roles = member.getRoles() if 'Manager' in roles: return context.accommodation_view_manager(psm=psm) elif 'StudentManager' in roles: return context.accommodation_view_manager(psm=psm) elif 'Student' in roles: return context.accommodation_view_student(psm=psm) return context.accommodation_view_all(psm=psm)