hook/model.py
def merge(self, new_dict):
        """Merges a dictionary into the Rule object."""
        actions = new_dict.pop("actions")
        for action in actions:
            self.add_action(action)

        self.__dict__.update(new_dict)
def merge(self, new_dict):
        """Merges a dictionary into the Rule object."""
        actions = new_dict.pop("actions")
        for action in actions:
            self.add_action(action)

        self.__dict__.update(new_dict)
def merge ( self , new_dict ) : actions = new_dict . pop ( "actions" ) for action in actions : self . add_action ( action ) self . __dict__ . update ( new_dict )
Merges a dictionary into the Rule object.
Merges a dictionary into the Rule object .