[PATCH 1/4] Move categories to pyanaconda.ui.categories.

Samantha N. Bueno sbueno+anaconda at redhat.com
Tue Jun 3 15:01:50 UTC 2014


Get rid of separately managed TUI and GUI categories.
---
 pyanaconda/ui/categories/Makefile.am          | 22 +++++++++++++
 pyanaconda/ui/categories/__init__.py          | 46 +++++++++++++++++++++++++++
 pyanaconda/ui/categories/customization.py     | 31 ++++++++++++++++++
 pyanaconda/ui/categories/localization.py      | 30 +++++++++++++++++
 pyanaconda/ui/categories/software.py          | 30 +++++++++++++++++
 pyanaconda/ui/categories/system.py            | 31 ++++++++++++++++++
 pyanaconda/ui/categories/user_settings.py     | 31 ++++++++++++++++++
 pyanaconda/ui/gui/categories/Makefile.am      | 22 -------------
 pyanaconda/ui/gui/categories/__init__.py      | 46 ---------------------------
 pyanaconda/ui/gui/categories/customization.py | 32 -------------------
 pyanaconda/ui/gui/categories/localization.py  | 31 ------------------
 pyanaconda/ui/gui/categories/software.py      | 31 ------------------
 pyanaconda/ui/gui/categories/system.py        | 32 -------------------
 pyanaconda/ui/gui/categories/user_settings.py | 32 -------------------
 pyanaconda/ui/tui/categories/Makefile.am      | 22 -------------
 pyanaconda/ui/tui/categories/__init__.py      | 46 ---------------------------
 pyanaconda/ui/tui/categories/customization.py | 32 -------------------
 pyanaconda/ui/tui/categories/localization.py  | 31 ------------------
 pyanaconda/ui/tui/categories/software.py      | 31 ------------------
 pyanaconda/ui/tui/categories/system.py        | 32 -------------------
 pyanaconda/ui/tui/categories/user_settings.py | 32 -------------------
 21 files changed, 221 insertions(+), 452 deletions(-)
 create mode 100644 pyanaconda/ui/categories/Makefile.am
 create mode 100644 pyanaconda/ui/categories/__init__.py
 create mode 100644 pyanaconda/ui/categories/customization.py
 create mode 100644 pyanaconda/ui/categories/localization.py
 create mode 100644 pyanaconda/ui/categories/software.py
 create mode 100644 pyanaconda/ui/categories/system.py
 create mode 100644 pyanaconda/ui/categories/user_settings.py
 delete mode 100644 pyanaconda/ui/gui/categories/Makefile.am
 delete mode 100644 pyanaconda/ui/gui/categories/__init__.py
 delete mode 100644 pyanaconda/ui/gui/categories/customization.py
 delete mode 100644 pyanaconda/ui/gui/categories/localization.py
 delete mode 100644 pyanaconda/ui/gui/categories/software.py
 delete mode 100644 pyanaconda/ui/gui/categories/system.py
 delete mode 100644 pyanaconda/ui/gui/categories/user_settings.py
 delete mode 100644 pyanaconda/ui/tui/categories/Makefile.am
 delete mode 100644 pyanaconda/ui/tui/categories/__init__.py
 delete mode 100644 pyanaconda/ui/tui/categories/customization.py
 delete mode 100644 pyanaconda/ui/tui/categories/localization.py
 delete mode 100644 pyanaconda/ui/tui/categories/software.py
 delete mode 100644 pyanaconda/ui/tui/categories/system.py
 delete mode 100644 pyanaconda/ui/tui/categories/user_settings.py

diff --git a/pyanaconda/ui/categories/Makefile.am b/pyanaconda/ui/categories/Makefile.am
new file mode 100644
index 0000000..e7d0e34
--- /dev/null
+++ b/pyanaconda/ui/categories/Makefile.am
@@ -0,0 +1,22 @@
+# Copyright (C) 2011  Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published
+# by the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+# Author: Chris Lumens <clumens at redhat.com>
+
+MAINTAINERCLEANFILES = Makefile.in
+
+pkgpyexecdir        = $(pyexecdir)/py$(PACKAGE_NAME)
+categoriesdir       = $(pkgpyexecdir)/ui/categories
+categories_PYTHON   = $(srcdir)/*.py
diff --git a/pyanaconda/ui/categories/__init__.py b/pyanaconda/ui/categories/__init__.py
new file mode 100644
index 0000000..06e431a
--- /dev/null
+++ b/pyanaconda/ui/categories/__init__.py
@@ -0,0 +1,46 @@
+# Base classes for spoke categories.
+#
+# Copyright (C) 2011, 2013  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): Chris Lumens <clumens at redhat.com>
+#
+
+import os.path
+from pyanaconda.i18n import N_
+
+__all__ = ["SpokeCategory"]
+
+class SpokeCategory(object):
+    """A SpokeCategory is an object used to group multiple related Spokes
+       together on a hub.  It consists of a title displayed above, and then
+       a two-column grid of SpokeSelectors.  Each SpokeSelector is associated
+       with a Spoke subclass.  A SpokeCategory will only display those Spokes
+       with a matching category attribute.
+
+       Class attributes:
+
+       displayOnHub  -- The Hub subclass to display this Category on.  If
+                        None, this Category will be skipped.
+       sortOrder     -- A number indicating the order in which this Category
+                        will be displayed.  A lower number indicates display
+                        higher up in the Hub.
+       title         -- The title of this SpokeCategory, to be displayed above
+                        the grid.
+    """
+    displayOnHub = None
+    sortOrder = 1000
+    title = N_("DEFAULT TITLE")
diff --git a/pyanaconda/ui/categories/customization.py b/pyanaconda/ui/categories/customization.py
new file mode 100644
index 0000000..549abfe
--- /dev/null
+++ b/pyanaconda/ui/categories/customization.py
@@ -0,0 +1,31 @@
+# Localization category classes
+#
+# Copyright (C) 2011, 2013  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): Chris Lumens <clumens at redhat.com>
+#                    Martin Sivak <msivak at redhat.com>
+#
+
+from pyanaconda.i18n import N_
+from pyanaconda.ui.categories import SpokeCategory
+
+__all__ = ["CustomizationCategory"]
+
+class CustomizationCategory(SpokeCategory):
+    displayOnHub = "SummaryHub"
+    sortOrder = 100
+    title = N_("CUSTOMIZATION")
diff --git a/pyanaconda/ui/categories/localization.py b/pyanaconda/ui/categories/localization.py
new file mode 100644
index 0000000..2a75741
--- /dev/null
+++ b/pyanaconda/ui/categories/localization.py
@@ -0,0 +1,30 @@
+# Localization category classes
+#
+# Copyright (C) 2011, 2013  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): Chris Lumens <clumens at redhat.com>
+#
+
+from pyanaconda.i18n import N_
+from pyanaconda.ui.categories import SpokeCategory
+
+__all__ = ["LocalizationCategory"]
+
+class LocalizationCategory(SpokeCategory):
+    displayOnHub = "SummaryHub"
+    sortOrder = 100
+    title = N_("LOCALIZATION")
diff --git a/pyanaconda/ui/categories/software.py b/pyanaconda/ui/categories/software.py
new file mode 100644
index 0000000..56dd79c
--- /dev/null
+++ b/pyanaconda/ui/categories/software.py
@@ -0,0 +1,30 @@
+# Software category classes
+#
+# Copyright (C) 2011, 2013  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): Chris Lumens <clumens at redhat.com>
+#
+
+from pyanaconda.i18n import N_
+from pyanaconda.ui.categories import SpokeCategory
+
+__all__ = ["SoftwareCategory"]
+
+class SoftwareCategory(SpokeCategory):
+    displayOnHub = "SummaryHub"
+    sortOrder = 200
+    title = N_("SOFTWARE")
diff --git a/pyanaconda/ui/categories/system.py b/pyanaconda/ui/categories/system.py
new file mode 100644
index 0000000..9d22a05
--- /dev/null
+++ b/pyanaconda/ui/categories/system.py
@@ -0,0 +1,31 @@
+# Storage category classes
+#
+# Copyright (C) 2011, 2013 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): Chris Lumens <clumens at redhat.com>
+#                    David Lehman <dlehman at redhat.com>
+#
+
+from pyanaconda.i18n import N_
+from pyanaconda.ui.categories import SpokeCategory
+
+__all__ = ["SystemCategory"]
+
+class SystemCategory(SpokeCategory):
+    displayOnHub = "SummaryHub"
+    sortOrder = 300
+    title = N_("SYSTEM")
diff --git a/pyanaconda/ui/categories/user_settings.py b/pyanaconda/ui/categories/user_settings.py
new file mode 100644
index 0000000..bae8e16
--- /dev/null
+++ b/pyanaconda/ui/categories/user_settings.py
@@ -0,0 +1,31 @@
+# User settings category classes
+#
+# Copyright (C) 2011, 2013  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): Chris Lumens <clumens at redhat.com>
+#                    Martin Sivak <msivak at redhat.com>
+#
+
+from pyanaconda.i18n import N_
+from pyanaconda.ui.categories import SpokeCategory
+
+__all__ = ["UserSettingsCategory"]
+
+class UserSettingsCategory(SpokeCategory):
+    displayOnHub = "ProgressHub"
+    sortOrder = 200
+    title = N_("USER SETTINGS")
diff --git a/pyanaconda/ui/gui/categories/Makefile.am b/pyanaconda/ui/gui/categories/Makefile.am
deleted file mode 100644
index ed3ecee..0000000
--- a/pyanaconda/ui/gui/categories/Makefile.am
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright (C) 2011  Red Hat, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as published
-# by the Free Software Foundation; either version 2.1 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-#
-# Author: Chris Lumens <clumens at redhat.com>
-
-MAINTAINERCLEANFILES = Makefile.in
-
-pkgpyexecdir        = $(pyexecdir)/py$(PACKAGE_NAME)
-categoriesdir       = $(pkgpyexecdir)/ui/gui/categories
-categories_PYTHON   = $(srcdir)/*.py
diff --git a/pyanaconda/ui/gui/categories/__init__.py b/pyanaconda/ui/gui/categories/__init__.py
deleted file mode 100644
index 06e431a..0000000
--- a/pyanaconda/ui/gui/categories/__init__.py
+++ /dev/null
@@ -1,46 +0,0 @@
-# Base classes for spoke categories.
-#
-# Copyright (C) 2011, 2013  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): Chris Lumens <clumens at redhat.com>
-#
-
-import os.path
-from pyanaconda.i18n import N_
-
-__all__ = ["SpokeCategory"]
-
-class SpokeCategory(object):
-    """A SpokeCategory is an object used to group multiple related Spokes
-       together on a hub.  It consists of a title displayed above, and then
-       a two-column grid of SpokeSelectors.  Each SpokeSelector is associated
-       with a Spoke subclass.  A SpokeCategory will only display those Spokes
-       with a matching category attribute.
-
-       Class attributes:
-
-       displayOnHub  -- The Hub subclass to display this Category on.  If
-                        None, this Category will be skipped.
-       sortOrder     -- A number indicating the order in which this Category
-                        will be displayed.  A lower number indicates display
-                        higher up in the Hub.
-       title         -- The title of this SpokeCategory, to be displayed above
-                        the grid.
-    """
-    displayOnHub = None
-    sortOrder = 1000
-    title = N_("DEFAULT TITLE")
diff --git a/pyanaconda/ui/gui/categories/customization.py b/pyanaconda/ui/gui/categories/customization.py
deleted file mode 100644
index be59dec..0000000
--- a/pyanaconda/ui/gui/categories/customization.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# Localization category classes
-#
-# Copyright (C) 2011, 2013  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): Chris Lumens <clumens at redhat.com>
-#                    Martin Sivak <msivak at redhat.com>
-#
-
-from pyanaconda.i18n import N_
-from pyanaconda.ui.gui.categories import SpokeCategory
-from pyanaconda.ui.gui.hubs.progress import ProgressHub
-
-__all__ = ["CustomizationCategory"]
-
-class CustomizationCategory(SpokeCategory):
-    displayOnHub = ProgressHub
-    sortOrder = 100
-    title = N_("CUSTOMIZATION")
diff --git a/pyanaconda/ui/gui/categories/localization.py b/pyanaconda/ui/gui/categories/localization.py
deleted file mode 100644
index 19a77ee..0000000
--- a/pyanaconda/ui/gui/categories/localization.py
+++ /dev/null
@@ -1,31 +0,0 @@
-# Localization category classes
-#
-# Copyright (C) 2011, 2013  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): Chris Lumens <clumens at redhat.com>
-#
-
-from pyanaconda.i18n import N_
-from pyanaconda.ui.gui.categories import SpokeCategory
-from pyanaconda.ui.gui.hubs.summary import SummaryHub
-
-__all__ = ["LocalizationCategory"]
-
-class LocalizationCategory(SpokeCategory):
-    displayOnHub = SummaryHub
-    sortOrder = 100
-    title = N_("LOCALIZATION")
diff --git a/pyanaconda/ui/gui/categories/software.py b/pyanaconda/ui/gui/categories/software.py
deleted file mode 100644
index 843f736..0000000
--- a/pyanaconda/ui/gui/categories/software.py
+++ /dev/null
@@ -1,31 +0,0 @@
-# Software category classes
-#
-# Copyright (C) 2011, 2013  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): Chris Lumens <clumens at redhat.com>
-#
-
-from pyanaconda.i18n import N_
-from pyanaconda.ui.gui.categories import SpokeCategory
-from pyanaconda.ui.gui.hubs.summary import SummaryHub
-
-__all__ = ["SoftwareCategory"]
-
-class SoftwareCategory(SpokeCategory):
-    displayOnHub = SummaryHub
-    sortOrder = 200
-    title = N_("SOFTWARE")
diff --git a/pyanaconda/ui/gui/categories/system.py b/pyanaconda/ui/gui/categories/system.py
deleted file mode 100644
index dd30688..0000000
--- a/pyanaconda/ui/gui/categories/system.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# Storage category classes
-#
-# Copyright (C) 2011, 2013 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): Chris Lumens <clumens at redhat.com>
-#                    David Lehman <dlehman at redhat.com>
-#
-
-from pyanaconda.i18n import N_
-from pyanaconda.ui.gui.categories import SpokeCategory
-from pyanaconda.ui.gui.hubs.summary import SummaryHub
-
-__all__ = ["SystemCategory"]
-
-class SystemCategory(SpokeCategory):
-    displayOnHub = SummaryHub
-    sortOrder = 300
-    title = N_("SYSTEM")
diff --git a/pyanaconda/ui/gui/categories/user_settings.py b/pyanaconda/ui/gui/categories/user_settings.py
deleted file mode 100644
index e025428..0000000
--- a/pyanaconda/ui/gui/categories/user_settings.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# User settings category classes
-#
-# Copyright (C) 2011, 2013  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): Chris Lumens <clumens at redhat.com>
-#                    Martin Sivak <msivak at redhat.com>
-#
-
-from pyanaconda.i18n import N_
-from pyanaconda.ui.gui.categories import SpokeCategory
-from pyanaconda.ui.gui.hubs.progress import ProgressHub
-
-__all__ = ["UserSettingsCategory"]
-
-class UserSettingsCategory(SpokeCategory):
-    displayOnHub = ProgressHub
-    sortOrder = 200
-    title = N_("USER SETTINGS")
diff --git a/pyanaconda/ui/tui/categories/Makefile.am b/pyanaconda/ui/tui/categories/Makefile.am
deleted file mode 100644
index 0ad7913..0000000
--- a/pyanaconda/ui/tui/categories/Makefile.am
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright (C) 2011  Red Hat, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as published
-# by the Free Software Foundation; either version 2.1 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-#
-# Author: Chris Lumens <clumens at redhat.com>
-
-MAINTAINERCLEANFILES = Makefile.in
-
-pkgpyexecdir        = $(pyexecdir)/py$(PACKAGE_NAME)
-categoriesdir       = $(pkgpyexecdir)/ui/tui/categories
-categories_PYTHON   = $(srcdir)/*.py
diff --git a/pyanaconda/ui/tui/categories/__init__.py b/pyanaconda/ui/tui/categories/__init__.py
deleted file mode 100644
index 06e431a..0000000
--- a/pyanaconda/ui/tui/categories/__init__.py
+++ /dev/null
@@ -1,46 +0,0 @@
-# Base classes for spoke categories.
-#
-# Copyright (C) 2011, 2013  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): Chris Lumens <clumens at redhat.com>
-#
-
-import os.path
-from pyanaconda.i18n import N_
-
-__all__ = ["SpokeCategory"]
-
-class SpokeCategory(object):
-    """A SpokeCategory is an object used to group multiple related Spokes
-       together on a hub.  It consists of a title displayed above, and then
-       a two-column grid of SpokeSelectors.  Each SpokeSelector is associated
-       with a Spoke subclass.  A SpokeCategory will only display those Spokes
-       with a matching category attribute.
-
-       Class attributes:
-
-       displayOnHub  -- The Hub subclass to display this Category on.  If
-                        None, this Category will be skipped.
-       sortOrder     -- A number indicating the order in which this Category
-                        will be displayed.  A lower number indicates display
-                        higher up in the Hub.
-       title         -- The title of this SpokeCategory, to be displayed above
-                        the grid.
-    """
-    displayOnHub = None
-    sortOrder = 1000
-    title = N_("DEFAULT TITLE")
diff --git a/pyanaconda/ui/tui/categories/customization.py b/pyanaconda/ui/tui/categories/customization.py
deleted file mode 100644
index b845e39..0000000
--- a/pyanaconda/ui/tui/categories/customization.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# Localization category classes
-#
-# Copyright (C) 2011, 2013  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): Chris Lumens <clumens at redhat.com>
-#                    Martin Sivak <msivak at redhat.com>
-#
-
-from pyanaconda.i18n import N_
-from pyanaconda.ui.tui.categories import SpokeCategory
-from pyanaconda.ui.tui.hubs.summary import SummaryHub
-
-__all__ = ["CustomizationCategory"]
-
-class CustomizationCategory(SpokeCategory):
-    displayOnHub = SummaryHub
-    sortOrder = 100
-    title = N_("CUSTOMIZATION")
diff --git a/pyanaconda/ui/tui/categories/localization.py b/pyanaconda/ui/tui/categories/localization.py
deleted file mode 100644
index b87ce40..0000000
--- a/pyanaconda/ui/tui/categories/localization.py
+++ /dev/null
@@ -1,31 +0,0 @@
-# Localization category classes
-#
-# Copyright (C) 2011, 2013  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): Chris Lumens <clumens at redhat.com>
-#
-
-from pyanaconda.i18n import N_
-from pyanaconda.ui.tui.categories import SpokeCategory
-from pyanaconda.ui.tui.hubs.summary import SummaryHub
-
-__all__ = ["LocalizationCategory"]
-
-class LocalizationCategory(SpokeCategory):
-    displayOnHub = SummaryHub
-    sortOrder = 100
-    title = N_("LOCALIZATION")
diff --git a/pyanaconda/ui/tui/categories/software.py b/pyanaconda/ui/tui/categories/software.py
deleted file mode 100644
index e15b7a9..0000000
--- a/pyanaconda/ui/tui/categories/software.py
+++ /dev/null
@@ -1,31 +0,0 @@
-# Software category classes
-#
-# Copyright (C) 2011, 2013  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): Chris Lumens <clumens at redhat.com>
-#
-
-from pyanaconda.i18n import N_
-from pyanaconda.ui.tui.categories import SpokeCategory
-from pyanaconda.ui.tui.hubs.summary import SummaryHub
-
-__all__ = ["SoftwareCategory"]
-
-class SoftwareCategory(SpokeCategory):
-    displayOnHub = SummaryHub
-    sortOrder = 200
-    title = N_("SOFTWARE")
diff --git a/pyanaconda/ui/tui/categories/system.py b/pyanaconda/ui/tui/categories/system.py
deleted file mode 100644
index 4613c9b..0000000
--- a/pyanaconda/ui/tui/categories/system.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# Storage category classes
-#
-# Copyright (C) 2011, 2013 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): Chris Lumens <clumens at redhat.com>
-#                    David Lehman <dlehman at redhat.com>
-#
-
-from pyanaconda.i18n import N_
-from pyanaconda.ui.tui.categories import SpokeCategory
-from pyanaconda.ui.tui.hubs.summary import SummaryHub
-
-__all__ = ["SystemCategory"]
-
-class SystemCategory(SpokeCategory):
-    displayOnHub = SummaryHub
-    sortOrder = 300
-    title = N_("SYSTEM")
diff --git a/pyanaconda/ui/tui/categories/user_settings.py b/pyanaconda/ui/tui/categories/user_settings.py
deleted file mode 100644
index 0ef3612..0000000
--- a/pyanaconda/ui/tui/categories/user_settings.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# User settings category classes
-#
-# Copyright (C) 2011, 2013  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): Chris Lumens <clumens at redhat.com>
-#                    Martin Sivak <msivak at redhat.com>
-#
-
-from pyanaconda.i18n import N_
-from pyanaconda.ui.tui.categories import SpokeCategory
-from pyanaconda.ui.tui.hubs.summary import SummaryHub
-
-__all__ = ["UserSettingsCategory"]
-
-class UserSettingsCategory(SpokeCategory):
-    displayOnHub = SummaryHub
-    sortOrder = 200
-    title = N_("USER SETTINGS")
-- 
1.8.3.1



More information about the anaconda-patches mailing list