Package CedarBackup2 :: Package writers :: Module dvdwriter :: Class MediaCapacity
[hide private]
[frames] | no frames]

Class MediaCapacity

source code

object --+
         |
        MediaCapacity

Class encapsulating information about DVD media capacity.

Space used and space available do not include any information about media lead-in or other overhead.

Instance Methods [hide private]
 
__init__(self, bytesUsed, bytesAvailable)
Initializes a capacity object.
source code
 
_getBytesUsed(self)
Property target used to get the bytes-used value.
source code
 
_getBytesAvailable(self)
Property target available to get the bytes-available value.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]
  bytesUsed
Space used on disc, in bytes.
  bytesAvailable
Space available on disc, in bytes.

Inherited from object: __class__

Method Details [hide private]

__init__(self, bytesUsed, bytesAvailable)
(Constructor)

source code 
Initializes a capacity object.
Raises:
  • ValueError - If the bytes used and available values are not floats.
Overrides: object.__init__

Property Details [hide private]

bytesUsed

Space used on disc, in bytes.
Get Method:
CedarBackup2.writers.dvdwriter.MediaCapacity._getBytesUsed(self) - Property target used to get the bytes-used value.

bytesAvailable

Space available on disc, in bytes.
Get Method:
CedarBackup2.writers.dvdwriter.MediaCapacity._getBytesAvailable(self) - Property target available to get the bytes-available value.