grr/server/grr_response_server/databases/mem_hunts.py
def UpdateHuntObject(self, hunt_id, update_fn):
    """Updates the hunt object by applying the update function."""
    hunt_obj = self.ReadHuntObject(hunt_id)
    updated_hunt_obj = update_fn(hunt_obj)
    if updated_hunt_obj is None:
      raise ValueError("update_fn can't return None")
    self.WriteHuntObject(updated_hunt_obj)
    return updated_hunt_obj
Updates the hunt object by applying the update function.
Updates the hunt object by applying the update function.
Updates the hunt object by applying the update function .
def UpdateHuntObject(self, hunt_id, update_fn):
    hunt_obj = self.ReadHuntObject(hunt_id)
    updated_hunt_obj = update_fn(hunt_obj)
    if updated_hunt_obj is None:
      raise ValueError("update_fn can't return None")
    self.WriteHuntObject(updated_hunt_obj)
    return updated_hunt_obj
def UpdateHuntObject ( self , hunt_id , update_fn ) : hunt_obj = self . ReadHuntObject ( hunt_id ) updated_hunt_obj = update_fn ( hunt_obj ) if updated_hunt_obj is None : raise ValueError ( "update_fn can't return None" ) self . WriteHuntObject ( updated_hunt_obj ) return updated_hunt_obj
Updates the hunt object by applying the update function.
Updates the hunt object by applying the update function .
"""Updates the hunt object by applying the update function."""
self
hunt_id
update_fn