def change_host_modattr(self, host, value):
        """Change host modified attributes
        Format of the line that triggers function call::

        CHANGE_HOST_MODATTR;<host_name>;<value>

        For boolean attributes, toggles the service attribute state (enable/disable)
        For non boolean attribute, only indicates that the corresponding attribute is to be saved
        in the retention.

        Value can be:
        MODATTR_NONE                            0
        MODATTR_NOTIFICATIONS_ENABLED           1
        MODATTR_ACTIVE_CHECKS_ENABLED           2
        MODATTR_PASSIVE_CHECKS_ENABLED          4
        MODATTR_EVENT_HANDLER_ENABLED           8
        MODATTR_FLAP_DETECTION_ENABLED          16
        MODATTR_PERFORMANCE_DATA_ENABLED        64
        MODATTR_EVENT_HANDLER_COMMAND           256
        MODATTR_CHECK_COMMAND                   512
        MODATTR_NORMAL_CHECK_INTERVAL           1024
        MODATTR_RETRY_CHECK_INTERVAL            2048
        MODATTR_MAX_CHECK_ATTEMPTS              4096
        MODATTR_FRESHNESS_CHECKS_ENABLED        8192
        MODATTR_CHECK_TIMEPERIOD                16384
        MODATTR_CUSTOM_VARIABLE                 32768
        MODATTR_NOTIFICATION_TIMEPERIOD         65536

        :param host: host to edit
        :type host: alignak.objects.host.Host
        :param value: new value to set
        :type value: str
        :return: None
        """
        # todo: deprecate this
        # We need to change each of the needed attributes.
        previous_value = host.modified_attributes
        changes = int(value)

        # For all boolean and non boolean attributes
        for modattr in ["MODATTR_NOTIFICATIONS_ENABLED", "MODATTR_ACTIVE_CHECKS_ENABLED",
                        "MODATTR_PASSIVE_CHECKS_ENABLED", "MODATTR_EVENT_HANDLER_ENABLED",
                        "MODATTR_FLAP_DETECTION_ENABLED", "MODATTR_PERFORMANCE_DATA_ENABLED",
                        "MODATTR_FRESHNESS_CHECKS_ENABLED",
                        "MODATTR_EVENT_HANDLER_COMMAND", "MODATTR_CHECK_COMMAND",
                        "MODATTR_NORMAL_CHECK_INTERVAL", "MODATTR_RETRY_CHECK_INTERVAL",
                        "MODATTR_MAX_CHECK_ATTEMPTS", "MODATTR_FRESHNESS_CHECKS_ENABLED",
                        "MODATTR_CHECK_TIMEPERIOD", "MODATTR_CUSTOM_VARIABLE",
                        "MODATTR_NOTIFICATION_TIMEPERIOD"]:
            if changes & DICT_MODATTR[modattr].value:
                # Toggle the concerned service attribute
                setattr(host, DICT_MODATTR[modattr].attribute, not
                        getattr(host, DICT_MODATTR[modattr].attribute))

        host.modified_attributes = previous_value ^ changes

        # And we need to push the information to the scheduler.
        self.send_an_element(host.get_update_status_brok())