[PATCH 6/8] Implement status in StandaloneSpoke.
David Shea
dshea at redhat.com
Wed Dec 11 19:04:12 UTC 2013
This provides a concrete implementation of Spoke.status so that
StandaloneSpoke subclasses aren't expected to implement it.
---
pyanaconda/ui/common.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/pyanaconda/ui/common.py b/pyanaconda/ui/common.py
index cc48e4a..7dec8f9 100644
--- a/pyanaconda/ui/common.py
+++ b/pyanaconda/ui/common.py
@@ -422,6 +422,13 @@ class StandaloneSpoke(NormalSpoke):
NormalSpoke.__init__(self, data, storage, payload, instclass)
+ # Standalone spokes are not part of a hub, and thus have no status.
+ # Provide a concrete implementation of status here so that subclasses
+ # don't need one.
+ @property
+ def status(self):
+ return None
+
class Hub(UIObject):
"""A Hub is an overview UI screen. A Hub consists of one or more grids of
configuration options that the user may choose from. Each grid is
--
1.8.4.2
More information about the anaconda-patches
mailing list