[node-patches] Change in ovirt-node[master]: Prepopulate even labels if data available

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


Fabian Deutsch has uploaded a new change for review.

Change subject: Prepopulate even labels if data available
......................................................................

Prepopulate even labels if data available

Change-Id: Ia6c859c6a94c7f46983b2a6c825ccfd71381aa4b
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/tui/src/ovirt/node/ui/builder.py
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/88/9888/1

diff --git a/scripts/tui/src/ovirt/node/ui/builder.py b/scripts/tui/src/ovirt/node/ui/builder.py
index 9aa3740..f26bc6b 100644
--- a/scripts/tui/src/ovirt/node/ui/builder.py
+++ b/scripts/tui/src/ovirt/node/ui/builder.py
@@ -105,9 +105,13 @@
     # Populate with values
     if type(item) in [ovirt.node.ui.Entry,
                       ovirt.node.ui.PasswordEntry,
+                      ovirt.node.ui.Label,
                       ovirt.node.ui.KeywordLabel,
                       ovirt.node.ui.Options]:
-        widget.set_text(plugin.model()[path])
+        model = plugin.model()
+        if path in model:
+            text = model[path]
+            widget.set_text(text)
 
     return widget
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia6c859c6a94c7f46983b2a6c825ccfd71381aa4b
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