(self)
return template_list
Get a list of all search templates that are available.

        Returns:
            List of searchtemplate.SearchTemplate object instances.
Get a list of all search templates that are available.
Get a list of all search templates that are available .
def list_search_templates(self):
        """Get a list of all search templates that are available.

        Returns:
            List of searchtemplate.SearchTemplate object instances.
        """
        response = self.api.fetch_resource_data('searchtemplate/')
        objects = response.get('objects', [])
        if not objects:
            return []

        template_dicts = objects[0]

        template_list = []
        for template_dict in template_dicts:
            template_obj = searchtemplate.SearchTemplate(api=self.api)
            template_obj.from_saved(template_dict.get('id'), sketch_id=self.id)

            template_list.append(template_obj)

        return template_list
def list_search_templates ( self ) : response = self . api . fetch_resource_data ( 'searchtemplate/' ) objects = response . get ( 'objects' , [ ] ) if not objects : return [ ] template_dicts = objects [ 0 ] template_list = [ ] for template_dict in template_dicts : template_obj = searchtemplate . SearchTemplate ( api = self . api ) template_obj . from_saved ( template_dict . get ( 'id' ) , sketch_id = self . id ) template_list . append ( template_obj ) return template_list