[Neo-report] r1827 gregory - /trunk/neo/node.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Feb 22 19:09:07 CET 2010
Author: gregory
Date: Mon Feb 22 19:09:07 2010
New Revision: 1827
Log:
Add some docstring.
Modified:
trunk/neo/node.py
Modified: trunk/neo/node.py
==============================================================================
--- trunk/neo/node.py [iso-8859-1] (original)
+++ trunk/neo/node.py [iso-8859-1] Mon Feb 22 19:09:07 2010
@@ -78,16 +78,25 @@
return self._uuid
def onConnectionClosed(self):
+ """
+ Callback from node's connection when closed
+ """
assert self._connection is not None
self._connection = None
def setConnection(self, connection):
+ """
+ Define the connection that is currently available to this node.
+ """
assert connection is not None
assert self._connection is None
self._connection = connection
connection.setOnClose(self.onConnectionClosed)
def getConnection(self):
+ """
+ Returns the connection to the node if available
+ """
assert self._connection is not None
return self._connection
More information about the Neo-report
mailing list