Section 8. No member of the city council shall, during the term for which he was chosen, either by appointment or by election of the city council or of either branch thereof, be eligible to any office the salary of which is payable by the city.