[PATCH 01/14] Allow InstallInterfaces to modify the installation steps.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This will be handy for the filtering interface that does not at all exist
in text mode.
---
 cmdline.py         |    4 +++-
 gui.py             |    3 +++
 installclass.py    |    3 +++
 text.py            |    4 ++++
 textw/task_text.py |    3 ---
 5 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/cmdline.py b/cmdline.py
index 310dc76..c6c98be 100644
--- a/cmdline.py
+++ b/cmdline.py
@@ -157,7 +157,9 @@ class InstallInterface:
 
             anaconda.dispatch.gotoNext()
 	    (step, instance) = anaconda.dispatch.currentStep()
-            
+
+    def setSteps(self, anaconda):
+        pass
 
 class progressDisplay:
     def __init__(self):
diff --git a/gui.py b/gui.py
index 4e65362..c54e935 100755
--- a/gui.py
+++ b/gui.py
@@ -1147,6 +1147,9 @@ class InstallInterface:
         self.icw = InstallControlWindow (self.anaconda)
         self.icw.run (self.runres)
 
+    def setSteps(self, anaconda):
+        pass
+
 class InstallControlWindow:
     def setLanguage (self):
         if not self.__dict__.has_key('window'): return
diff --git a/installclass.py b/installclass.py
index 03902c8..a490ce9 100644
--- a/installclass.py
+++ b/installclass.py
@@ -155,6 +155,9 @@ class BaseInstallClass(object):
         if len(availableClasses()) < 2:
             dispatch.skipStep("installtype", permanent=1)
 
+        # allow interface backends to skip certain steps.
+        anaconda.intf.setSteps(anaconda)
+
     # modifies the uri from installmethod.getMethodUri() to take into
     # account any installclass specific things including multiple base
     # repositories.  takes a string or list of strings, returns a dict 
diff --git a/text.py b/text.py
index f602986..89f017d 100644
--- a/text.py
+++ b/text.py
@@ -548,6 +548,10 @@ class InstallInterface:
 
         self.screen.finish()
 
+    def setSteps(self, anaconda):
+        anaconda.dispatch.skipStep("basepkgsel")
+        anaconda.dispatch.skipStep("group-selection")
+
 def killSelf(screen):
     screen.finish()
     os._exit(0)
diff --git a/textw/task_text.py b/textw/task_text.py
index 94d417c..17d312b 100644
--- a/textw/task_text.py
+++ b/textw/task_text.py
@@ -22,9 +22,6 @@ from constants import *
 
 class TaskWindow:
     def __call__(self, screen, anaconda):
-        anaconda.dispatch.skipStep("basepkgsel")
-        anaconda.dispatch.skipStep("group-selection")
-
         anaconda.backend.resetPackageSelections()
         anaconda.backend.selectGroup("Core")
 
-- 
1.6.5.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux