From: Julien Tribino Date: Wed, 18 Dec 2013 15:10:24 +0000 (+0100) Subject: Add some comment for documentation and test the sphinx hook X-Git-Tag: nepi-3.1.0~145 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8330840dd97c3b65bcd2c62492038fff1bc38b51;p=nepi.git Add some comment for documentation and test the sphinx hook --- diff --git a/src/nepi/resources/omf/application.py b/src/nepi/resources/omf/application.py index 65f1f4a2..c4dfdaaa 100644 --- a/src/nepi/resources/omf/application.py +++ b/src/nepi/resources/omf/application.py @@ -107,10 +107,17 @@ class OMFApplication(OMFResource): return None def stdin_hook(self, old_value, new_value): + """ Set a hook to the stdin attribute in order to send a message at each time + the value of this parameter is changed + + """ self._omf_api.send_stdin(self.node.get('hostname'), new_value, self.get('appid')) return new_value def add_set_hook(self): + """ Initialize the hooks + + """ attr = self._attrs["stdin"] attr.set_hook = self.stdin_hook