(self, search_obj, index=-1)
return self._add_block(view_block, index)
Add a saved search to the story.

        Args:
            search_obj: a search object (instance of search.Search)
            index: an integer, if supplied determines where the new
                block will be added. If not supplied it will be
                appended at the end.

        Returns:
            Boolean that indicates whether block was successfully added.

        Raises:
            TypeError: if the search object is not of the correct type.
Add a saved search to the story.
Add a saved search to the story .
def add_saved_search(self, search_obj, index=-1):
        """Add a saved search to the story.

        Args:
            search_obj: a search object (instance of search.Search)
            index: an integer, if supplied determines where the new
                block will be added. If not supplied it will be
                appended at the end.

        Returns:
            Boolean that indicates whether block was successfully added.

        Raises:
            TypeError: if the search object is not of the correct type.
        """
        if not hasattr(search_obj, 'id'):
            raise TypeError('View object is not correctly formed.')

        if not hasattr(search_obj, 'name'):
            raise TypeError('View object is not correctly formed.')

        if index == -1:
            index = len(self._blocks)

        view_block = ViewBlock(self, index)
        view_block.feed(search_obj)

        return self._add_block(view_block, index)
def add_saved_search ( self , search_obj , index = - 1 ) : if not hasattr ( search_obj , 'id' ) : raise TypeError ( 'View object is not correctly formed.' ) if not hasattr ( search_obj , 'name' ) : raise TypeError ( 'View object is not correctly formed.' ) if index == - 1 : index = len ( self . _blocks ) view_block = ViewBlock ( self , index ) view_block . feed ( search_obj ) return self . _add_block ( view_block , index )