Commit 19c21639 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Implements __repr__() on Cell class to help debugging.


git-svn-id: https://svn.erp5.org/repos/neo/trunk@1372 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent dc4bb554
...@@ -30,6 +30,13 @@ class Cell(object): ...@@ -30,6 +30,13 @@ class Cell(object):
self.node = node self.node = node
self.state = state self.state = state
def __repr__(self):
return "<Cell(uuid=%s, address=%s, state=%s)>" % (
dump(self.getUUID()),
self.getAddress(),
self.getState(),
)
def getState(self): def getState(self):
return self.state return self.state
......
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