| |
- Method resolution order:
- F7Handler
- pykickstart.base.BaseHandler
- pykickstart.ko.KickstartObject
- __builtin__.object
Data and other attributes defined here:
- version = 5000
Methods inherited from pykickstart.base.BaseHandler:
- __init__(self, mapping={}, dataMapping={}, commandUpdates={}, dataUpdates={}, *args, **kwargs)
- Create a new BaseHandler instance. This method must be provided by
all subclasses, but subclasses must call BaseHandler.__init__ first.
mapping -- A custom map from command strings to classes,
useful when creating your own handler with
special command objects. It is otherwise unused
and rarely needed. If you give this argument,
the mapping takes the place of the default one
and so must include all commands you want
recognized.
dataMapping -- This is the same as mapping, but for data
objects. All the same comments apply.
commandUpdates -- This is similar to mapping, but does not take
the place of the defaults entirely. Instead,
this mapping is applied after the defaults and
updates it with just the commands you want to
modify.
dataUpdates -- This is the same as commandUpdates, but for
data objects.
Instance attributes:
commands -- A mapping from a string command to a KickstartCommand
subclass object that handles it. Multiple strings can
map to the same object, but only one instance of the
command object should ever exist. Most users should
never have to deal with this directly, as it is
manipulated internally and called through dispatcher.
currentLine -- The current unprocessed line from the input file
that caused this handler to be run.
packages -- An instance of pykickstart.parser.Packages which
describes the packages section of the input file.
platform -- A string describing the hardware platform, which is
needed only by system-config-kickstart.
scripts -- A list of pykickstart.parser.Script instances, which is
populated by KickstartParser.addScript and describes the
%pre/%post/%traceback script section of the input file.
- __str__(self)
- Return a string formatted for output to a kickstart file.
- dispatcher(self, args, lineno, include=None)
- Call the appropriate KickstartCommand handler for the current line
in the kickstart file. A handler for the current command should
be registered, though a handler of None is not an error. Returns
the data object returned by KickstartCommand.parse.
args -- A list of arguments to the current command
lineno -- The line number in the file, for error reporting
include -- The path to any file %included immediately before the
current command
- hasCommand(self, cmd)
- Return true if there is a handler for the string cmd.
- maskAllExcept(self, lst)
- Set all entries in the commands dict to None, except the ones in
the lst. All other commands will not be processed.
Data descriptors inherited from pykickstart.ko.KickstartObject:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|