(self)
return timelines
List all timelines for this sketch.

        Returns:
            List of timelines (instances of Timeline objects)
List all timelines for this sketch.
List all timelines for this sketch .
def list_timelines(self):
        """List all timelines for this sketch.

        Returns:
            List of timelines (instances of Timeline objects)
        """
        if self.is_archived():
            raise RuntimeError(
                'Unable to list timelines on an archived sketch.')

        timelines = []

        data = self.lazyload_data()
        objects = data.get('objects')
        if not objects:
            return timelines

        for timeline_dict in objects[0].get('timelines', []):
            timeline_obj = timeline.Timeline(
                timeline_id=timeline_dict['id'],
                sketch_id=self.id,
                api=self.api,
                name=timeline_dict['name'],
                searchindex=timeline_dict['searchindex']['index_name'])
            timelines.append(timeline_obj)
        return timelines
def list_timelines ( self ) : if self . is_archived ( ) : raise RuntimeError ( 'Unable to list timelines on an archived sketch.' ) timelines = [ ] data = self . lazyload_data ( ) objects = data . get ( 'objects' ) if not objects : return timelines for timeline_dict in objects [ 0 ] . get ( 'timelines' , [ ] ) : timeline_obj = timeline . Timeline ( timeline_id = timeline_dict [ 'id' ] , sketch_id = self . id , api = self . api , name = timeline_dict [ 'name' ] , searchindex = timeline_dict [ 'searchindex' ] [ 'index_name' ] ) timelines . append ( timeline_obj ) return timelines