(self, search_id=None, search_name=None)
return None
Returns a saved search object that is stored in the sketch.

        Args:
            view_id: an integer indicating the ID of the view to
                be fetched. Defaults to None.
            view_name: a string with the name of the view. Optional
                and defaults to None.

        Returns:
            A search object (instance of search.Search) if one is found.
            Returns a None if neither search_id or search_name is defined or if
            the search does not exist.
Returns a saved search object that is stored in the sketch.
Returns a saved search object that is stored in the sketch .
def get_saved_search(self, search_id=None, search_name=None):
        """Returns a saved search object that is stored in the sketch.

        Args:
            view_id: an integer indicating the ID of the view to
                be fetched. Defaults to None.
            view_name: a string with the name of the view. Optional
                and defaults to None.

        Returns:
            A search object (instance of search.Search) if one is found.
            Returns a None if neither search_id or search_name is defined or if
            the search does not exist.
        """
        if self.is_archived():
            raise RuntimeError(
                'Unable to get saved searches on an archived sketch.')

        if search_id is None and search_name is None:
            return None

        for search_obj in self.list_saved_searches():
            if search_id and search_id == search_obj.id:
                return search_obj
            if search_name and search_name.lower() == search_obj.name.lower():
                return search_obj
        return None
def get_saved_search ( self , search_id = None , search_name = None ) : if self . is_archived ( ) : raise RuntimeError ( 'Unable to get saved searches on an archived sketch.' ) if search_id is None and search_name is None : return None for search_obj in self . list_saved_searches ( ) : if search_id and search_id == search_obj . id : return search_obj if search_name and search_name . lower ( ) == search_obj . name . lower ( ) : return search_obj return None