[node-patches] Change in ovirt-node[master]: plugin: Signal when data changes to valid/invalid

fabiand at fedoraproject.org fabiand at fedoraproject.org
Tue Dec 11 20:09:42 UTC 2012


Fabian Deutsch has uploaded a new change for review.

Change subject: plugin: Signal when data changes to valid/invalid
......................................................................

plugin: Signal when data changes to valid/invalid

Change-Id: Ic3743322b1cf43480f3ff760a7c888ca3481823d
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/tui/src/ovirt/node/plugins.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/58/9958/1

diff --git a/scripts/tui/src/ovirt/node/plugins.py b/scripts/tui/src/ovirt/node/plugins.py
index fea4845..ddca2a1 100644
--- a/scripts/tui/src/ovirt/node/plugins.py
+++ b/scripts/tui/src/ovirt/node/plugins.py
@@ -73,6 +73,7 @@
         super(NodePlugin, self).__init__()
         self.__changes = {}
         self.application = application
+        self.sig_valid = self.register_signal("valid")
 
     def name(self):
         """Returns the name of the plugin.
@@ -130,7 +131,9 @@
                     msg = e.message
                 # True and None are allowed values
                 if msg not in [True, None]:
+                    self.sig_valid.emit(False)
                     raise ovirt.node.exceptions.InvalidData(msg)
+        self.sig_valid.emit(True)
         return True
 
     def ui_name(self):


--
To view, visit http://gerrit.ovirt.org/9958
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic3743322b1cf43480f3ff760a7c888ca3481823d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list