def linkify_with_checkmodulations(self, checkmodulations):
        """
        Link checkmodulation object

        :param checkmodulations: checkmodulations object
        :type checkmodulations: alignak.objects.checkmodulation.Checkmodulations
        :return: None
        """
        for i in self:
            if not hasattr(i, 'checkmodulations'):
                continue

            links_list = strip_and_uniq(i.checkmodulations)
            new = []
            for name in [e for e in links_list if e]:
                modulation = checkmodulations.find_by_name(name)
                if modulation is not None and modulation.uuid not in new:
                    new.append(modulation.uuid)
                else:
                    i.add_error("The checkmodulations of the %s '%s' named "
                                "'%s' is unknown!" % (i.__class__.my_type, i.get_name(), name))

            i.checkmodulations = new
def linkify_with_checkmodulations ( self , checkmodulations ) : for i in self : if not hasattr ( i , 'checkmodulations' ) : continue links_list = strip_and_uniq ( i . checkmodulations ) new = [ ] for name in [ e for e in links_list if e ] : modulation = checkmodulations . find_by_name ( name ) if modulation is not None and modulation . uuid not in new : new . append ( modulation . uuid ) else : i . add_error ( "The checkmodulations of the %s '%s' named " "'%s' is unknown!" % ( i . __class__ . my_type , i . get_name ( ) , name ) ) i . checkmodulations = new
Link checkmodulation object

        :param checkmodulations: checkmodulations object
        :type checkmodulations: alignak.objects.checkmodulation.Checkmodulations
        :return: None