code: def linkify_hd_by_tp(self, timeperiods):
          
          for hostdep in self:
              try:
                  tp_name = hostdep.dependency_period
                  timeperiod = timeperiods.find_by_name(tp_name)
                  if timeperiod:
                      hostdep.dependency_period = timeperiod.uuid
                  else:
                      hostdep.dependency_period = ''
              except AttributeError as exp:  # pragma: no cover, simple protectionn
                  logger.error("[hostdependency] fail to linkify by timeperiod: %s", exp)
docs: Replace dependency_period by a real object in host dependency
  
          :param timeperiods: list of timeperiod, used to look for a specific one
          :type timeperiods: alignak.objects.timeperiod.Timeperiods
          :return: None