From 8330840dd97c3b65bcd2c62492038fff1bc38b51 Mon Sep 17 00:00:00 2001 From: Julien Tribino Date: Wed, 18 Dec 2013 16:10:24 +0100 Subject: [PATCH] Add some comment for documentation and test the sphinx hook --- src/nepi/resources/omf/application.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.47.0