code: def linkify_with_escalations(self, escalations):
          
          for i in self:
              if not hasattr(i, 'escalations'):
                  continue
  
              links_list = strip_and_uniq(i.escalations)
              new = []
              for name in [e for e in links_list if e]:
                  escalation = escalations.find_by_name(name)
                  if escalation is not None and escalation.uuid not in new:
                      new.append(escalation.uuid)
                  else:
                      i.add_error("the escalation '%s' defined for '%s' is unknown"
                                  % (name, i.get_name()))
  
              i.escalations = new
docs: Link with escalations
  
          :param escalations: all escalations object
          :type escalations: alignak.objects.escalation.Escalations
          :return: None