Ejemplo n.º 1
0
 def timeline(self):
     """Returns a timeline object."""
     timeline_obj = timeline.Timeline(timeline_id=self._timeline_id,
                                      sketch_id=self._sketch.id,
                                      api=self._sketch.api,
                                      name=self._timeline_name,
                                      searchindex=self._index)
     return timeline_obj
Ejemplo n.º 2
0
    def timeline(self):
        """Returns a timeline object."""
        if not self._timeline_id:
            logger.warning('No timeline ID has been stored as of yet.')
            return None

        timeline_obj = timeline.Timeline(timeline_id=self._timeline_id,
                                         sketch_id=self._sketch.id,
                                         api=self._sketch.api,
                                         name=self._timeline_name,
                                         searchindex=self._index)
        return timeline_obj