[f22-branch 1/6] Mark the back_clicked attribute of the Storage spoke as private

vpodzime installerbot-noreply at redhat.com
Thu Apr 16 11:34:54 UTC 2015


From: Vratislav Podzimek <vpodzime at redhat.com>

It's not supposed to be read from the outside.

Related: rhbz#1210003
---
 pyanaconda/ui/gui/spokes/storage.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index 372c2e6..a84e13e 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -250,7 +250,7 @@ def __init__(self, *args, **kwargs):
         self.encrypted = False
         self.passphrase = ""
         self.selected_disks = self.data.ignoredisk.onlyuse[:]
-        self.back_clicked = False
+        self._back_clicked = False
 
         # This list contains all possible disks that can be included in the install.
         # All types of advanced disks should be set up for us ahead of time, so
@@ -462,7 +462,7 @@ def _on_disk_focus_in(self, overview, event):
     def refresh(self):
         self.disks = getDisks(self.storage.devicetree)
 
-        self.back_clicked = False
+        self._back_clicked = False
 
         # synchronize our local data store with the global ksdata
         disk_names = [d.name for d in self.disks]
@@ -739,10 +739,10 @@ def on_back_clicked(self, button):
 
         # Do not enter this method multiple times if user clicking multiple times
         # on back button
-        if self.back_clicked:
+        if self._back_clicked:
             return
         else:
-            self.back_clicked = True
+            self._back_clicked = True
 
         # Remove all non-existing devices if autopart was active when we last
         # refreshed.


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/3a4980552149dae0b9fa19b14e71d8363405c726


More information about the anaconda-patches mailing list