[node-patches] Change in ovirt-node[master]: progress_page:Disable F2 key when starting installing RHEV-H

hadong0720 at gmail.com hadong0720 at gmail.com
Sat Jul 6 10:28:25 UTC 2013


hadong has uploaded a new change for review.

Change subject: progress_page:Disable F2 key when starting installing RHEV-H
......................................................................

progress_page:Disable F2 key when starting installing RHEV-H

Previously progress page accepts F2 to drop to shell,if press F2 Key
repeated when starting installing RHEV-H, this action may cause install
RHEV-H failed.
Now disabled F2 key when starting installing RHEV-H, after finished
installing RHEV-H, and enabled F2 key again in progress page

Change-Id: Ia670fc848ce324033de72ec52a047d24e78e151c
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=981596
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M src/ovirt/node/installer/core/progress_page.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/25/16525/1

diff --git a/src/ovirt/node/installer/core/progress_page.py b/src/ovirt/node/installer/core/progress_page.py
index e5a64c1..d075748 100644
--- a/src/ovirt/node/installer/core/progress_page.py
+++ b/src/ovirt/node/installer/core/progress_page.py
@@ -94,6 +94,7 @@
             self.logger.error("Error in installer thread: %s" % e)
 
     def __run(self):
+        app = self.progress_plugin.application
         reboot_button = self.progress_plugin.widgets["action.reboot"]
         progressbar = self.progress_plugin.widgets["progressbar"]
         log = self.progress_plugin.widgets["log"]
@@ -102,6 +103,7 @@
         try:
             self.ui_thread.call(lambda: log.text("\n".join(log_lines)))
             self.ui_thread.call(lambda: reboot_button.enabled(False))
+            self.ui_thread.call(lambda: app.ui.hotkeys_enabled(False))
 
             transaction = self.__build_transaction()
             txlen = len(transaction)
@@ -136,6 +138,7 @@
         finally:
             pass
             self.ui_thread.call(lambda: reboot_button.enabled(True))
+            self.ui_thread.call(lambda: app.ui.hotkeys_enabled(True))
 
         if captured.stderr.getvalue():
             se = captured.stderr.getvalue()


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia670fc848ce324033de72ec52a047d24e78e151c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>



More information about the node-patches mailing list