diff options
author | Chris Lumens <clumens@redhat.com> | 2012-02-28 15:01:20 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2012-02-28 15:45:55 -0500 |
commit | b09759b030f3fa87525dcc28d71bf7c5821278e6 (patch) | |
tree | 01341c802b73e81029d3dfeb189779f247c1e910 /pyanaconda/ui/__init__.py | |
parent | cc443eac4777ba43a176d0287661d000d579950d (diff) | |
download | anaconda-b09759b030f3fa87525dcc28d71bf7c5821278e6.tar.gz anaconda-b09759b030f3fa87525dcc28d71bf7c5821278e6.tar.xz anaconda-b09759b030f3fa87525dcc28d71bf7c5821278e6.zip |
Make the base UI classes take a payload instance, just like they do devicetree.
Diffstat (limited to 'pyanaconda/ui/__init__.py')
-rw-r--r-- | pyanaconda/ui/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pyanaconda/ui/__init__.py b/pyanaconda/ui/__init__.py index 92e4007ce..4f2300fb3 100644 --- a/pyanaconda/ui/__init__.py +++ b/pyanaconda/ui/__init__.py @@ -24,7 +24,7 @@ class UserInterface(object): defines what kinds of dialogs and entry widgets every interface must provide that the rest of anaconda may rely upon. """ - def __init__(self, devicetree, instclass): + def __init__(self, devicetree, payload, instclass): """Create a new UserInterface instance. The arguments this base class accepts defines the API that interfaces @@ -35,6 +35,9 @@ class UserInterface(object): devicetree -- An instance of storage.devicetree.DeviceTree. This is useful for determining what storage devices are present and how they are configured. + payload -- An instance of a packaging.Payload subclass. This + is useful for displaying and selecting packages to + install, and in carrying out the actual installation. instclass -- An instance of a BaseInstallClass subclass. This is useful for determining distribution-specific installation information like default package @@ -44,6 +47,7 @@ class UserInterface(object): raise TypeError("UserInterface is an abstract class.") self.devicetree = devicetree + self.payload = payload self.instclass = instclass # Register this interface with the top-level ErrorHandler. |