def add_error_codes(new_codes):
 for (code, message) in new_codes.iteritems():
  error_list[code] = _(message)
  errors[code] = code

def add_error_codes ( new_codes ) : for ( code , message ) in new_codes . iteritems ( ) : error_list [ code ] = _ ( message ) errors [ code ] = code
add error codes to the error enumeration .