parameters: (self, request, response)
docstring: Handles delete snippets set request.
  
      Args:
        request: request object.
        response: response object.
  
      Raises:
        SnippetsServeException, psycopg2.Warning/Error.
docstring_summary: Handles delete snippets set request.
docstring_tokens: Handles delete snippets set request .
function: def HandleDeleteSnippetSetRequest(self, request, response):
      """Handles delete snippets set request.
  
      Args:
        request: request object.
        response: response object.
  
      Raises:
        SnippetsServeException, psycopg2.Warning/Error.
      """
      logger.debug("HandleDeleteSnippetSetRequest...")
      snippets_set_name = request.GetParameter(constants.SNIPPET_SET_NAME)
      if not snippets_set_name:
        raise exceptions.SnippetsServeException(
            "HandleDeleteSnippetSetRequest: missing snippets set name.")
  
      # Check if the snippets set exists. If it doesn't then just return success.
      if not self._SnippetSetExists(snippets_set_name):
        http_io.ResponseWriter.AddJsonBody(
            response, constants.STATUS_SUCCESS, None)
        return
  
      # Delete the snippets set entry.
      query_string = "DELETE FROM snippet_set_table WHERE name = %s"
      self._DbModify(query_string, (snippets_set_name,))
  
      http_io.ResponseWriter.AddJsonBody(
          response, constants.STATUS_SUCCESS, None)
function_tokens: def HandleDeleteSnippetSetRequest ( self , request , response ) : logger . debug ( "HandleDeleteSnippetSetRequest..." ) snippets_set_name = request . GetParameter ( constants . SNIPPET_SET_NAME ) if not snippets_set_name : raise exceptions . SnippetsServeException ( "HandleDeleteSnippetSetRequest: missing snippets set name." ) # Check if the snippets set exists. If it doesn't then just return success. if not self . _SnippetSetExists ( snippets_set_name ) : http_io . ResponseWriter . AddJsonBody ( response , constants . STATUS_SUCCESS , None ) return # Delete the snippets set entry. query_string = "DELETE FROM snippet_set_table WHERE name = %s" self . _DbModify ( query_string , ( snippets_set_name , ) ) http_io . ResponseWriter . AddJsonBody ( response , constants . STATUS_SUCCESS , None )