summaryrefslogtreecommitdiffstats
path: root/pyanaconda/ui/__init__.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2012-03-16 10:30:16 -0400
committerChris Lumens <clumens@redhat.com>2012-03-20 10:51:56 -0400
commit5d2346647803f00c494300b67a6fd1bc3eb355d3 (patch)
treea49b3e6ac57dc6696f48b5bfc04a45fbf89c46c0 /pyanaconda/ui/__init__.py
parentc0f8b156fb2b0238ad2fcac553482d529e9ef9a5 (diff)
downloadanaconda-5d2346647803f00c494300b67a6fd1bc3eb355d3.tar.gz
anaconda-5d2346647803f00c494300b67a6fd1bc3eb355d3.tar.xz
anaconda-5d2346647803f00c494300b67a6fd1bc3eb355d3.zip
All UI objects need to take a Storage instead of a DeviceTree.
We're going to need to do this for the advanced partitioning stuff anyway, and now it looks like we'll need a Storage to do a reset on the base repo when it's changed in the source spoke. Might as well make the change now.
Diffstat (limited to 'pyanaconda/ui/__init__.py')
-rw-r--r--pyanaconda/ui/__init__.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pyanaconda/ui/__init__.py b/pyanaconda/ui/__init__.py
index 4f2300fb3..128f67c56 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, payload, instclass):
+ def __init__(self, storage, payload, instclass):
"""Create a new UserInterface instance.
The arguments this base class accepts defines the API that interfaces
@@ -32,9 +32,9 @@ class UserInterface(object):
everything in the anaconda class, as that would be a big mess.
Instead, a UserInterface may count on the following:
- devicetree -- An instance of storage.devicetree.DeviceTree. This
- is useful for determining what storage devices are
- present and how they are configured.
+ storage -- An instance of storage.Storage. 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.
@@ -46,7 +46,7 @@ class UserInterface(object):
if self.__class__ is UserInterface:
raise TypeError("UserInterface is an abstract class.")
- self.devicetree = devicetree
+ self.storage = storage
self.payload = payload
self.instclass = instclass