# 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 'Manager' in roles or 'SectionManager' in roles: return 'WAeUP_Backoffice' return 'WAeUP_Student'