- def setSteps(self, anaconda):
- pass
-
class InstallControlWindow:
def setLanguage (self):
if not self.__dict__.has_key('window'): return
diff --git a/pyanaconda/installclass.py b/pyanaconda/installclass.py
index 7815051..fcd3f14 100644
--- a/pyanaconda/installclass.py
+++ b/pyanaconda/installclass.py
@@ -149,7 +149,7 @@ class BaseInstallClass(object):
dispatch.skipStep("findrootparts", skip = 0)
# allow interface backends to skip certain steps.
- anaconda.intf.setSteps(anaconda)
+ map(lambda s: dispatch.skipStep(s), anaconda.intf.unsupported_steps())
# modifies the uri from installmethod.getMethodUri() to take into
# account any installclass specific things including multiple base
diff --git a/pyanaconda/installinterfacebase.py b/pyanaconda/installinterfacebase.py
index 7a65017..af15a91 100644
--- a/pyanaconda/installinterfacebase.py
+++ b/pyanaconda/installinterfacebase.py
@@ -33,9 +33,6 @@ class InstallInterfaceBase(object):
self._initLabelAnswers = {}
self._inconsistentLVMAnswers = {}
- def setSteps(self, anaconda):
- pass
-
def messageWindow(self, title, text, type="ok", default = None,
custom_buttons=None, custom_icon=None):
raise NotImplementedError
@@ -196,3 +193,7 @@ class InstallInterfaceBase(object):
custom_icon=icon,
custom_buttons=buttons,
expanded=True)
+
+ def unsupported_steps(self):
+ """ List of steps this interface is unable to carry out. """
+ return []
diff --git a/pyanaconda/text.py b/pyanaconda/text.py
index a47631d..cde81a4 100644
--- a/pyanaconda/text.py
+++ b/pyanaconda/text.py
@@ -552,11 +552,8 @@ class InstallInterface(InstallInterfaceBase):
# a better answer
continue