[PATCH 06/16] StorageChecker ought to have a self.storage attribute.
Chris Lumens
clumens at redhat.com
Wed Aug 14 13:18:51 UTC 2013
---
pyanaconda/ui/gui/spokes/custom.py | 1 +
pyanaconda/ui/gui/spokes/storage.py | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 2502431..8c2dd69 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -612,6 +612,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
title = N_("MANUAL PARTITIONING")
def __init__(self, data, storage, payload, instclass):
+ StorageChecker.__init__(self)
NormalSpoke.__init__(self, data, storage, payload, instclass)
self.__storage = None
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index da2267e..2cd1ab3 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -306,6 +306,11 @@ class StorageChecker(object):
warnings = []
_mainSpokeClass = "StorageSpoke"
+ def __init__(self):
+ # This is provided by the StorageSpoke class, which is a subclass of
+ # this one. Backwards, I know.
+ self.storage = None
+
def run(self):
threadMgr.add(AnacondaThread(name=constants.THREAD_CHECK_STORAGE,
target=self.checkStorage))
@@ -335,6 +340,7 @@ class StorageSpoke(NormalSpoke, StorageChecker):
title = N_("INSTALLATION _DESTINATION")
def __init__(self, *args, **kwargs):
+ StorageChecker.__init__(self)
NormalSpoke.__init__(self, *args, **kwargs)
self.applyOnSkip = True
--
1.8.1.2
More information about the anaconda-patches
mailing list