Package pyanaconda :: Module flags :: Class BootArgs
[hide private]
[frames] | no frames]

Class BootArgs

source code

         object --+        
                  |        
               dict --+    
                      |    
collections.OrderedDict --+
                          |
                         BootArgs

Hold boot arguments as an OrderedDict.

Instance Methods [hide private]
new empty dictionary

__init__(self, cmdline=None, files=cmdline_files)
Create a BootArgs object.
source code
 
read(self, filenames)
Read and parse a filename (or a list of filenames).
source code
 
readstr(self, cmdline) source code
 
getbool(self, arg, default=False)
Return the value of the given arg, as a boolean.
source code

Inherited from collections.OrderedDict: __delitem__, __eq__, __iter__, __ne__, __reduce__, __repr__, __reversed__, __setitem__, clear, copy, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, values, viewitems, viewkeys, viewvalues

Inherited from dict: __cmp__, __contains__, __ge__, __getattribute__, __getitem__, __gt__, __le__, __len__, __lt__, __new__, __sizeof__, get, has_key

Inherited from object: __delattr__, __format__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from collections.OrderedDict: fromkeys

Class Variables [hide private]

Inherited from collections.OrderedDict: update

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cmdline=None, files=cmdline_files)
(Constructor)

source code 

Create a BootArgs object. Reads each of the "files", then parses "cmdline" if it was provided.

Returns:
new empty dictionary

Overrides: object.__init__

read(self, filenames)

source code 

Read and parse a filename (or a list of filenames). Files that can't be read are silently ignored. Returns a list of successfully read files.

getbool(self, arg, default=False)

source code 

Return the value of the given arg, as a boolean. The rules are:
- "arg", "arg=val": True
- "noarg", "noarg=val", "arg=[0|off|no]": False