(self, timeline, label)
return True
Add a label to the timeline.
Add a label to the timeline.
Add a label to the timeline .
def _add_label(self, timeline, label):
        """Add a label to the timeline."""
        if timeline.has_label(label):
            logger.warning(
                'Unable to apply the label [{0:s}] to timeline {1:s}, '
                'already exists.'.format(label, timeline.name))
            return False
        timeline.add_label(label, user=current_user)
        return True
def _add_label ( self , timeline , label ) : if timeline . has_label ( label ) : logger . warning ( 'Unable to apply the label [{0:s}] to timeline {1:s}, ' 'already exists.' . format ( label , timeline . name ) ) return False timeline . add_label ( label , user = current_user ) return True