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

Class ActionDestroyFormat

source code

  object --+    
           |    
DeviceAction --+
               |
              ActionDestroyFormat

An action representing the removal of an existing filesystem.

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

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

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

Class Variables [hide private]
  type = 1000
  obj = 1

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 

wipe the filesystem signature from the device

Overrides: DeviceAction.execute

cancel(self)

source code 

cancel the action

Overrides: DeviceAction.cancel
(inherited documentation)

format(self)

source code 
Decorators:
  • @property
Overrides: DeviceAction.format

requires(self, action)

source code 

Return True if self requires action.

Format destroy actions require other actions when:

  • the other action's device depends on this action's device and the other action is a destroy action
Overrides: DeviceAction.requires

obsoletes(self, action)

source code 
Return True if this action obsoletes action.

Format destroy actions obsolete the following actions:

- format actions w/ lower id on same device, including self if
  format does not exist

- format destroy action on a non-existent format shouldn't
  obsolete a format destroy action on an existing one

Overrides: DeviceAction.obsoletes