Package pyanaconda :: Package storage :: Module deviceaction :: Class ActionCreateDevice
[hide private]
[frames] | no frames]

Class ActionCreateDevice

source code

  object --+    
           |    
DeviceAction --+
               |
              ActionCreateDevice

Action representing the creation of a new device.

Instance Methods [hide private]
 
__init__(self, device)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
execute(self, intf=None)
perform the action
source code
 
requires(self, action)
Return True if self requires action.
source code

Inherited from DeviceAction: __str__, cancel, format, isCreate, isDestroy, isDevice, isFormat, isGrow, isMigrate, isResize, isShrink, obsoletes

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  type = 100
  obj = 2

Inherited from DeviceAction (private): _id

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, device)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

execute(self, intf=None)

source code 

perform the action

Overrides: DeviceAction.execute
(inherited documentation)

requires(self, action)

source code 

Return True if self requires action.

Device create actions require other actions when either of the following is true:

  • this action's device depends on the other action's device
  • both actions are partition create actions on the same disk and this partition has a higher number
Overrides: DeviceAction.requires