(self, timelines)
Sets the timelines.
Sets the timelines.
Sets the timelines .
def timelines(self, timelines):
        """Sets the timelines."""
        if not isinstance(timelines, (list, tuple)):
            logger.error('Unable to add timelines, this needs to be a list')

        for timeline in timelines:
            if isinstance(timeline, int):
                self._timelines.append(timeline)
                continue

            if hasattr(timeline, 'id') and hasattr(timeline, 'index_name'):
                self._timelines.append(timeline.id)
def timelines ( self , timelines ) : if not isinstance ( timelines , ( list , tuple ) ) : logger . error ( 'Unable to add timelines, this needs to be a list' ) for timeline in timelines : if isinstance ( timeline , int ) : self . _timelines . append ( timeline ) continue if hasattr ( timeline , 'id' ) and hasattr ( timeline , 'index_name' ) : self . _timelines . append ( timeline . id )