Commit f6140d82 authored by Vincent Pelletier's avatar Vincent Pelletier

Use attributeTracker on node._state.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1563 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent c981c3bb
......@@ -21,6 +21,8 @@ from neo import logging
from neo.util import dump
from neo.protocol import NodeTypes, NodeStates
from neo import attributeTracker
class Node(object):
"""This class represents a node."""
......@@ -144,6 +146,14 @@ class Node(object):
except KeyError:
raise NotImplementedError
def whoSetState(self):
"""
Debugging method: call this method to know who set the current
state value.
"""
return attributeTracker.whoSet(self, '_state')
attributeTracker.track(Node)
class MasterNode(Node):
"""This class represents a master node."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment