Violation of law; revocation of operator's license; duties of director and Nebraska State Patrol.Upon conviction of any person in any court within this state of any violation of (1) any law of this state pertaining to the operation of motor vehicles or (2) any city or village ordinance pertaining to the operation of a motor vehicle in such a manner as to endanger life, limb, or property, except fo