[PATCH 1/2] Mark the back_clicked attribute of the Storage spoke as private

Vratislav Podzimek vpodzime at redhat.com
Thu Apr 9 10:44:23 UTC 2015


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

Related: rhbz#1210003
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 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 @@ class StorageSpoke(NormalSpoke, StorageChecker):
         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 @@ class StorageSpoke(NormalSpoke, StorageChecker):
     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 @@ class StorageSpoke(NormalSpoke, StorageChecker):
 
         # 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.
-- 
2.1.0



More information about the anaconda-patches mailing list