[node-patches] Change in ovirt-node[master]: Clear password.info text when giving new password

hadong0720 at gmail.com hadong0720 at gmail.com
Tue Dec 31 03:15:51 UTC 2013


hadong has uploaded a new change for review.

Change subject: Clear password.info text when giving new password
......................................................................

Clear password.info text when giving new password

Change-Id: I4a888e96bb6822912bd97fe81de85f43587d51eb
Signed-off-by: hadong <hadong0720 at gmail.com>
---
M src/ovirt/node/installer/core/upgrade_page.py
1 file changed, 10 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/29/22829/1

diff --git a/src/ovirt/node/installer/core/upgrade_page.py b/src/ovirt/node/installer/core/upgrade_page.py
index 5d28f5f..2c4b30a 100644
--- a/src/ovirt/node/installer/core/upgrade_page.py
+++ b/src/ovirt/node/installer/core/upgrade_page.py
@@ -72,6 +72,16 @@
         return page
 
     def on_change(self, changes):
+        if changes.contains_any(["upgrade.password[0]",
+                                 "upgrade.password[1]"]):
+            self._model.update(changes)
+            up_pw, up_pw_conf = self._model.get("upgrade.password[0]", ""), \
+                self._model.get("upgrade.password[1]", "")
+         if not up_pw and not up_pw_conf:
+             self.widgets["password.info"].text(self.__no_new_password_msg)
+         else:
+             self.widgets["password.info"].text("")
+
         if changes.contains_any(["upgrade.current_password"]):
             # Hide any message which was shown
             self.widgets["current_password.info"].text("")


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

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