[node-patches] Change in ovirt-node[master]: network: Improve network page

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


Fabian Deutsch has uploaded a new change for review.

Change subject: network: Improve network page
......................................................................

network: Improve network page

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


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/45/9945/1

diff --git a/scripts/tui/src/ovirt/node/setup/network_page.py b/scripts/tui/src/ovirt/node/setup/network_page.py
index 0dc95df..967950b 100644
--- a/scripts/tui/src/ovirt/node/setup/network_page.py
+++ b/scripts/tui/src/ovirt/node/setup/network_page.py
@@ -141,6 +141,7 @@
         return self._widgets[path]
 
     def _build_nic_details_dialog(self):
+        self.logger.debug("Building NIC details dialog")
         # Populate model with nic specific informations
         iface = self._model["nics"]
         self.logger.debug("Getting informations for NIC details page")
@@ -246,7 +247,16 @@
         if "nics" in changes and len(changes) == 1:
             iface = changes["nics"]
             self.logger.debug("Opening NIC Details dialog for '%s'" % iface)
-            return self._build_nic_details_dialog()
+            self._nic_dialog = self._build_nic_details_dialog()
+            return self._nic_dialog
+
+        if "dialog.nic.close" in changes:
+            self._nic_dialog.close()
+            return
+
+        if "dialog.nic.save" in changes:
+            self.logger.debug("Save and close NIC")
+            self._nic_dialog.close()
 
         def set_progress(txt):
             set_progress.txt += txt + "\n"
@@ -254,10 +264,12 @@
         set_progress.txt = "Applying changes ...\n"
 
         progress = ui.Label(set_progress.txt)
-        d = self.application.ui.show_dialog(self._build_dialog("dialog.dia",
+        _d = self._build_dialog("dialog.dia",
                                                                "fooo", [
             ("dialog.dia.text[0]", progress),
-            ]))
+            ])
+        _d.buttons = []
+        d = self.application.ui.show_dialog(_d)
 
         # This object will contain all transaction elements to be executed
         txs = utils.Transaction("DNS and NTP configuration")


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

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