Package pyanaconda :: Module kickstart :: Class AnacondaPreParser
[hide private]
[frames] | no frames]

Class AnacondaPreParser

source code

pykickstart.parser.KickstartParser --+
                                     |
                                    AnacondaPreParser

Instance Methods [hide private]
 
__init__(self, handler, followIncludes=True, errorsAreFatal=True, missingIncludeIsFatal=True)
Create a new KickstartParser instance.
source code
 
handleCommand(self, lineno, args)
Given the list of command and arguments, call the Version's dispatcher method to handle the command.
source code
 
setupSections(self)
Install the sections all kickstart files support.
source code

Inherited from pykickstart.parser.KickstartParser: getSection, readKickstart, readKickstartFromString, registerSection

Inherited from pykickstart.parser.KickstartParser (private): _finalize, _handleInclude, _handleSpecialComments, _isBlankOrComment, _readSection, _reset, _stateMachine, _tryFunc, _validState

Method Details [hide private]

__init__(self, handler, followIncludes=True, errorsAreFatal=True, missingIncludeIsFatal=True)
(Constructor)

source code 
Create a new KickstartParser instance.  Instance attributes:

errorsAreFatal        -- Should errors cause processing to halt, or
                         just print a message to the screen?  This
                         is most useful for writing syntax checkers
                         that may want to continue after an error is
                         encountered.
followIncludes        -- If %include is seen, should the included
                         file be checked as well or skipped?
handler               -- An instance of a BaseHandler subclass.  If
                         None, the input file will still be parsed
                         but no data will be saved and no commands
                         will be executed.
missingIncludeIsFatal -- Should missing include files be fatal, even
                         if errorsAreFatal is False?

Overrides: pykickstart.parser.KickstartParser.__init__
(inherited documentation)

handleCommand(self, lineno, args)

source code 

Given the list of command and arguments, call the Version's dispatcher method to handle the command. Returns the command or data object returned by the dispatcher. This method may be overridden in a subclass if necessary.

Overrides: pykickstart.parser.KickstartParser.handleCommand
(inherited documentation)

setupSections(self)

source code 

Install the sections all kickstart files support. You may override this method in a subclass, but should avoid doing so unless you know what you're doing.

Overrides: pykickstart.parser.KickstartParser.setupSections
(inherited documentation)