[node-patches] Change in ovirt-node[master]: plugin_page: When selecting plugin name show data

dougsland at redhat.com dougsland at redhat.com
Sun Dec 14 23:44:55 UTC 2014


Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: plugin_page: When selecting plugin name show data
......................................................................

plugin_page: When selecting plugin name show data

This patch shows plugin data immediately when user select plugin name on TUI.
Previously, TUI expect users to press enter when each plugin selected.

Change-Id: I8b9f20516a40b3c1e735b39802a64754caf1b683
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=988692
Signed-off-by: Douglas Schilling Landgraf <dougsland at redhat.com>
---
M src/ovirt/node/setup/core/plugins_page.py
1 file changed, 9 insertions(+), 2 deletions(-)


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

diff --git a/src/ovirt/node/setup/core/plugins_page.py b/src/ovirt/node/setup/core/plugins_page.py
index 156e2fd..8d5e377 100644
--- a/src/ovirt/node/setup/core/plugins_page.py
+++ b/src/ovirt/node/setup/core/plugins_page.py
@@ -47,9 +47,9 @@
         all_plugins = self.__list_of_plugins()
         if all_plugins:
             selected_plugin = all_plugins[0][0]
-            ws = [ui.Header("header[0]", _("Installed Plugins")),
+            ws = [ui.Header("header[0]", _("Plugins")),
 
-                  ui.Table("plugins.installed", "", _("Installed plugins:"),
+                  ui.Table("plugins.installed", "", _("Installed Plugins:"),
                            all_plugins, selected_plugin),
 
                   ui.Divider("divider[0]"),
@@ -72,6 +72,9 @@
                                     ui.SaveButton("button.dfile",
                                                   _("File Diff"))])
                   ]
+
+            has_plugin = {"plugins.installed":selected_plugin}
+            self.logger.debug("has_plugin %s", has_plugin)
         else:
             ws = [ui.Header("header[0]", _("Plugins")),
                   ui.Label("label[0]",
@@ -80,6 +83,10 @@
         page = ui.Page("page", ws)
         page.buttons = []
         self.widgets.add(page)
+
+        if all_plugins:
+            self.on_change(has_plugin)
+
         return page
 
     def model(self):


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8b9f20516a40b3c1e735b39802a64754caf1b683
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>



More information about the node-patches mailing list