diff options
author | David Cantrell <dcantrell@redhat.com> | 2006-05-25 18:59:20 +0000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2006-05-25 18:59:20 +0000 |
commit | 770242c3d300f1b478df446f899b1c13e830ead7 (patch) | |
tree | 8062df5c9371844ab2f9e861f3291d11aeac4a38 /cmdline.py | |
parent | 553d42ea7e643d822f57b5fa6c4c0a4eec04602f (diff) | |
download | anaconda-770242c3d300f1b478df446f899b1c13e830ead7.tar.gz anaconda-770242c3d300f1b478df446f899b1c13e830ead7.tar.xz anaconda-770242c3d300f1b478df446f899b1c13e830ead7.zip |
* anaconda (__main__): Pass reference to anaconda rather than id and
dispatch references when calling anaconda.intf.run().
* cmdline.py (InstallInterface.run): Changes to account for receiving
a reference to the anaconda object rather than an id and dispatch
object.
* gui.py (InstallInterface.run): Likewise.
* text.py (InstallInterface.run): Likewise.
* gui.py (InstallControlWindow.releaseNotesButtonClicked): Pass
reference to anaconda object to the ReleaseNotesViewerThread object.
Diffstat (limited to 'cmdline.py')
-rw-r--r-- | cmdline.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cmdline.py b/cmdline.py index df37dd0e8..18f125e54 100644 --- a/cmdline.py +++ b/cmdline.py @@ -102,25 +102,25 @@ class InstallInterface: def beep(self): pass - def run(self, id, dispatch): - id.fsset.registerMessageWindow(self.messageWindow) - id.fsset.registerProgressWindow(self.progressWindow) - id.fsset.registerWaitWindow(self.waitWindow) + def run(self, anaconda): + anaconda.id.fsset.registerMessageWindow(self.messageWindow) + anaconda.id.fsset.registerProgressWindow(self.progressWindow) + anaconda.id.fsset.registerWaitWindow(self.waitWindow) parted.exception_set_handler(self.partedExceptionWindow) - (step, anaconda) = dispatch.currentStep() + (step, instance) = anaconda.dispatch.currentStep() while step: if stepToClasses.has_key(step): s = "nextWin = %s" %(stepToClasses[step],) exec s - nextWin(anaconda) + nextWin(instance) else: print "In interactive step %s, can't continue" %(step,) while 1: time.sleep(1) - dispatch.gotoNext() - (step, anaconda) = dispatch.currentStep() + anaconda.dispatch.gotoNext() + (step, instance) = anaconda.dispatch.currentStep() class progressDisplay: |