Mini Shell
3
�
Ld�q � @ s d Z ddlmZmZmZmZmZmZmZ ddl m
Z
ddlmZ ddl
mZmZmZmZmZmZmZmZ ddlmZ G dd� de�ZG d d
� d
e�ZG dd� de�ZG d
d� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Z G dd� de�Z!dS )a�
This module exports the classes that define a section of a kickstart file. A
section is a chunk of the file starting with a %tag and ending with a %end.
Examples of sections include %packages, %pre, and %post.
You may use this module to define your own custom sections which will be
treated just the same as a predefined one by the kickstart parser. All that
is necessary is to create a new subclass of Section and call
parser.registerSection with an instance of your new class.
� )�
KS_SCRIPT_PRE�KS_SCRIPT_POST�KS_SCRIPT_TRACEBACK�KS_SCRIPT_PREINSTALL�KS_SCRIPT_ONERROR�KS_MISSING_IGNORE�KS_MISSING_PROMPT)�KickstartParseError)�KSOptionParser)�FC4�F7�F9�F18�F21�F22�F24�RHEL7)�_c @ sH e Zd ZdZdZdZdZdd� Zdd� Zd d
� Z dd� Z
ed
d� �ZdS )�Sectiona� The base class for defining kickstart sections. You are free to
subclass this as appropriate.
Class attributes:
allLines -- Does this section require the parser to call handleLine
for every line in the section, even blanks and comments?
sectionOpen -- The string that denotes the start of this section. You
must start your tag with a percent sign.
timesSeen -- This attribute is for informational purposes only. It is
incremented every time handleHeader is called to keep
track of the number of times a section of this type is
seen.
F� r c K s"