summaryrefslogtreecommitdiffstats
path: root/pyanaconda/constants.py
diff options
context:
space:
mode:
authorAles Kozumplik <akozumpl@redhat.com>2011-02-14 15:41:04 +0100
committerAles Kozumplik <akozumpl@redhat.com>2011-02-21 10:00:55 +0100
commit3cdec7fb0622d4c18ccc340f55e47718e9307b15 (patch)
treec1530f6e518007bbad95c531e2774570c06c8d52 /pyanaconda/constants.py
parent0b11b880750f0a920b75e47cded4c39c33b3423c (diff)
downloadanaconda-3cdec7fb0622d4c18ccc340f55e47718e9307b15.tar.gz
anaconda-3cdec7fb0622d4c18ccc340f55e47718e9307b15.tar.xz
anaconda-3cdec7fb0622d4c18ccc340f55e47718e9307b15.zip
Make the dispatcher call the shots.
Changes the way the dispatcher and anaconda.intf cooperate in an attempt to take control away from the interface and give it to the dispatcher where it should be. The dispatcher.moveStep() method is rewritten into a form that does not include the complex condition in the while cycle. Also the method was renamed to dispatch() to reflect that it (exclusively) containts the step-shifting logic and that upon a single call to it the installation can progress more than one step (or all of them). For GUI interface implementation, this patch removes icw.setScreen and isolates the code that creates next GUI screen into the display_step() method. Similar changes happened for the text and command line interfaces.
Diffstat (limited to 'pyanaconda/constants.py')
-rw-r--r--pyanaconda/constants.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyanaconda/constants.py b/pyanaconda/constants.py
index 498d41f21..994bdda43 100644
--- a/pyanaconda/constants.py
+++ b/pyanaconda/constants.py
@@ -28,7 +28,8 @@ SELINUX_DEFAULT = 1
DISPATCH_BACK = -1
DISPATCH_FORWARD = 1
-DISPATCH_NOOP = None
+DISPATCH_DEFAULT = None
+DISPATCH_WAITING = 2
# different types of partition requests
# REQUEST_PREEXIST is a placeholder for a pre-existing partition on the system