Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | # |
| 2 | # Chris Lumens <clumens@redhat.com> |
| 3 | # |
| 4 | # Copyright 2007, 2008, 2009, 2010 Red Hat, Inc. |
| 5 | # |
| 6 | # This copyrighted material is made available to anyone wishing to use, modify, |
| 7 | # copy, or redistribute it subject to the terms and conditions of the GNU |
| 8 | # General Public License v.2. This program is distributed in the hope that it |
| 9 | # will be useful, but WITHOUT ANY WARRANTY expressed or implied, including the |
| 10 | # implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 11 | # See the GNU General Public License for more details. |
| 12 | # |
| 13 | # You should have received a copy of the GNU General Public License along with |
| 14 | # this program; if not, write to the Free Software Foundation, Inc., 51 |
| 15 | # Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Any Red Hat |
| 16 | # trademarks that are incorporated in the source code or documentation are not |
| 17 | # subject to the GNU General Public License and may only be used or replicated |
| 18 | # with the express permission of Red Hat, Inc. |
| 19 | # |
| 20 | from pykickstart.version import * |
| 21 | from pykickstart.commands import * |
| 22 | |
| 23 | # This map is keyed on kickstart syntax version as provided by |
| 24 | # pykickstart.version. Within each sub-dict is a mapping from command name |
| 25 | # to the class that handles it. This is an onto mapping - that is, multiple |
| 26 | # command names can map to the same class. However, the Handler will ensure |
| 27 | # that only one instance of each class ever exists. |
| 28 | commandMap = { |
| 29 | # based on f15 |
| 30 | F16: { |
| 31 | "bootloader": bootloader.F15_Bootloader, |
| 32 | "part": partition.F14_Partition, |
| 33 | "partition": partition.F14_Partition, |
| 34 | }, |
| 35 | } |
| 36 | |
| 37 | # This map is keyed on kickstart syntax version as provided by |
| 38 | # pykickstart.version. Within each sub-dict is a mapping from a data object |
| 39 | # name to the class that provides it. This is a bijective mapping - that is, |
| 40 | # each name maps to exactly one data class and all data classes have a name. |
| 41 | # More than one instance of each class is allowed to exist, however. |
| 42 | dataMap = { |
| 43 | F16: { |
| 44 | "PartData": partition.F14_PartData, |
| 45 | }, |
| 46 | } |