<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def enable_model_triggers(self, state):
 """ Enables Model Nodes and attributes triggers. :param state: Inform model state. :type state: bool :return: Method success. :rtype: bool """


        for node in foundations.walkers.nodes_walker(self.root_node):
            node.trigger_model = state

            for attribute in node.get_attributes():
                attribute.trigger_model = state