grr/server/grr_response_server/databases/mysql_flows.py
def DeleteClientMessages(self, messages, cursor=None):
    """Deletes a list of client messages from the db."""
    if not messages:
      return

    to_delete = []
    for m in messages:
      to_delete.append((db_utils.ClientIdFromGrrMessage(m), m.task_id))

    if len(set(to_delete)) != len(to_delete):
      raise ValueError(
          "Received multiple copies of the same message to delete.")

    self._DeleteClientMessages(to_delete, cursor=cursor)
Deletes a list of client messages from the db.
Deletes a list of client messages from the db.
Deletes a list of client messages from the db .
def DeleteClientMessages(self, messages, cursor=None):
    if not messages:
      return
    to_delete = []
    for m in messages:
      to_delete.append((db_utils.ClientIdFromGrrMessage(m), m.task_id))
    if len(set(to_delete)) != len(to_delete):
      raise ValueError(
          "Received multiple copies of the same message to delete.")
    self._DeleteClientMessages(to_delete, cursor=cursor)
def DeleteClientMessages ( self , messages , cursor = None ) : if not messages : return to_delete = [ ] for m in messages : to_delete . append ( ( db_utils . ClientIdFromGrrMessage ( m ) , m . task_id ) ) if len ( set ( to_delete ) ) != len ( to_delete ) : raise ValueError ( "Received multiple copies of the same message to delete." ) self . _DeleteClientMessages ( to_delete , cursor = cursor )
Deletes a list of client messages from the db.
Deletes a list of client messages from the db .
"""Deletes a list of client messages from the db."""
self
messages
cursor