No appointed officer or employee of the city shall in any manner contribute to any candidate for election to a municipal office of the city or participate in any election, primary or political contests for a municipal office of the city other than by exercising the right to vote, privately expressing political views, or by serving as election officials.