[node-patches] Change in ovirt-node[master]: security_page: Disable "Bytes Used" when selecting "Disable ...

hadong0720 at gmail.com hadong0720 at gmail.com
Sat Jun 8 11:42:26 UTC 2013


hadong has uploaded a new change for review.

Change subject: security_page: Disable "Bytes Used" when selecting "Disable AES-NI"
......................................................................

security_page: Disable "Bytes Used" when selecting
"Disable AES-NI"

Previously when selecting "Disable AES-NI", the item "Bytes Used"
still can be edited.
Now disable "Bytes Used" when selecting "Disable AES-NI"

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


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/46/15446/1

diff --git a/src/ovirt/node/setup/core/security_page.py b/src/ovirt/node/setup/core/security_page.py
index 1972715..482397e 100644
--- a/src/ovirt/node/setup/core/security_page.py
+++ b/src/ovirt/node/setup/core/security_page.py
@@ -72,6 +72,15 @@
         return page
 
     def on_change(self, changes):
+        if changes.contains_any(["strongrng.disable_aesni"]):
+            self._model.update(changes)
+            model = self._model
+            disable_aesni = model.get("strongrng.disable_aesni", "")
+            if disable_aesni:
+                self.widgets["strongrng.num_bytes"].enabled(False)
+            else:
+                self.widgets["strongrng.num_bytes"].enabled(True)
+
         if changes.contains_any(["passwd.admin.password",
                                  "passwd.admin.password_confirmation"]):
             self._model.update(changes)


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

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