code: def namedb_preorder_insert( cur, preorder_rec ):
      
  
      preorder_row = copy.deepcopy( preorder_rec )
      
      assert 'preorder_hash' in preorder_row, "BUG: missing preorder_hash"
  
      try:
          preorder_query, preorder_values = namedb_insert_prepare( cur, preorder_row, "preorders" )
      except Exception, e:
          log.exception(e)
          log.error("FATAL: Failed to insert name preorder '%s'" % preorder_row['preorder_hash']) 
          os.abort()
  
      namedb_query_execute( cur, preorder_query, preorder_values )
      return True
docs: Add a name or namespace preorder record, if it doesn't exist already.
  
      DO NOT CALL THIS DIRECTLY.