[anaconda][rhel7-branch][PATCH] Add a Licensing category (#1039677)

Martin Kolman mkolman at redhat.com
Tue Sep 2 13:46:09 UTC 2014


Add a new "LICENSING" category for use by the EULA spoke
in Initial Setup.

Signed-off-by: Martin Kolman <mkolman at redhat.com>
---
 pyanaconda/ui/gui/categories/licensing.py | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 pyanaconda/ui/gui/categories/licensing.py

diff --git a/pyanaconda/ui/gui/categories/licensing.py b/pyanaconda/ui/gui/categories/licensing.py
new file mode 100644
index 0000000..a4b9cdb
--- /dev/null
+++ b/pyanaconda/ui/gui/categories/licensing.py
@@ -0,0 +1,31 @@
+# Licensing category class
+#
+# Copyright (C) 2014  Red Hat, Inc.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions of
+# the GNU General Public License v.2, or (at your option) any later version.
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY expressed or implied, including the implied warranties of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
+# Public License for more details.  You should have received a copy of the
+# GNU General Public License along with this program; if not, write to the
+# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.  Any Red Hat trademarks that are incorporated in the
+# source code or documentation are not subject to the GNU General Public
+# License and may only be used or replicated with the express permission of
+# Red Hat, Inc.
+#
+# Red Hat Author(s): Martin Kolman <mkolman at redhat.com>
+#
+
+from pyanaconda.i18n import N_
+from pyanaconda.ui.gui.categories import SpokeCategory
+from pyanaconda.ui.gui.hubs.summary import SummaryHub
+
+__all__ = ["LicensingCategory"]
+
+class LicensingCategory(SpokeCategory):
+    displayOnHub = SummaryHub
+    sortOrder = 100
+    title = N_("LICENSING")
-- 
1.9.3



More information about the anaconda-patches mailing list