[PATCH 07/16] Add FirstbootMixIn
Martin Sivak
msivak at redhat.com
Thu Dec 6 15:46:30 UTC 2012
---
pyanaconda/ui/common.py | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/pyanaconda/ui/common.py b/pyanaconda/ui/common.py
index 11f5e0b..29373fa 100644
--- a/pyanaconda/ui/common.py
+++ b/pyanaconda/ui/common.py
@@ -109,6 +109,26 @@ class UIObject(object):
def data(self):
return self._data
+class FirstbootSpokeMixIn(object):
+ """This MixIn class marks Spokes as usable for Firstboot."""
+
+ @classmethod
+ def configure_tag(cls):
+ """This method defines textual id (or list of those) that will
+ be written into the after-install customization status
+ file for the firstboot and GIE to know that the spoke was
+ configured in anaconda."""
+ return None
+
+ @classmethod
+ def firstboot(cls):
+ """This method is responsible for beginning Spoke initialization
+ in the firstboot environment (even before __init__).
+
+ It should return True if the spoke is to be shown on the
+ FirstbootHub and False if it should be skipped."""
+ return True
+
class Spoke(UIObject):
"""A Spoke is a single configuration screen. There are several different
places where a Spoke can be displayed, each of which will have its own
--
1.7.11.7
More information about the anaconda-patches
mailing list