# Return the right theme in context: request = container.REQUEST RESPONSE = request.RESPONSE # Return a string identifying this script. mtool = context.portal_membership member = mtool.getAuthenticatedMember() roles = member.getRoles() if 'Student' in roles or mtool.isAnonymousUser(): return 'WAeUP_Student' return 'WAeUP_Backoffice'