summaryrefslogtreecommitdiffstats
path: root/iw/installpath.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-08-31 01:52:40 +0000
committerErik Troan <ewt@redhat.com>1999-08-31 01:52:40 +0000
commit004cdf34e7b16be3d1b65189b56753537e551115 (patch)
tree24cd7e3b20e8962ee8eed8f2d38cad1666372398 /iw/installpath.py
parent71ad01470e27761c11f036f56b2bb5408f160f15 (diff)
downloadanaconda-004cdf34e7b16be3d1b65189b56753537e551115.tar.gz
anaconda-004cdf34e7b16be3d1b65189b56753537e551115.tar.xz
anaconda-004cdf34e7b16be3d1b65189b56753537e551115.zip
support for kickstart
Diffstat (limited to 'iw/installpath.py')
-rw-r--r--iw/installpath.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/iw/installpath.py b/iw/installpath.py
index ee4f8aa95..04b9d1493 100644
--- a/iw/installpath.py
+++ b/iw/installpath.py
@@ -70,6 +70,12 @@ class InstallPathWindow (InstallWindow):
ics.setNextEnabled (1)
def getNext(self):
+ if not self.__dict__.has_key("upgradeButton"):
+ print "okay"
+ return
+
+ print "ACK"
+
if self.upgradeButton.get_active():
self.todo.upgrade = 1
self.ics.getICW ().setStateList (self.commonSteps +
@@ -100,6 +106,17 @@ class InstallPathWindow (InstallWindow):
self.installBox.set_sensitive(0)
def getScreen (self):
+ if (self.todo.instClass.installType == "install"):
+ self.ics.getICW ().setStateList (self.commonSteps +
+ self.installSteps, len (self.commonSteps)-1)
+ self.todo.upgrade = 0
+ return None
+ elif (self.todo.instClass.installType == "upgrade"):
+ self.ics.getICW ().setStateList (self.commonSteps +
+ self.upgradeSteps, len (self.commonSteps)-1)
+ self.todo.upgrade = 1
+ return None
+
box = GtkVBox (FALSE, 5)
installButton = GtkRadioButton (None, _("Install"))
installButton.connect ("toggled", self.toggled, INSTALL)