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

Type MediaCapacity

object --+
         |
        MediaCapacity


Class encapsulating information about CD media capacity.

Space used includes the required media lead-in (unless the disk is unused). Space available attempts to provide a picture of how many bytes are available for data storage, including any required lead-in.

The boundaries value is either None (if multisession discs are not supported or if the disc has no boundaries) or in exactly the form provided by cdrecord -msinfo. It can be passed as-is to the IsoImage class.
Method Summary
  __init__(self, bytesUsed, bytesAvailable, boundaries)
Initializes a capacity object.
  _getBoundaries(self)
Property target available to get the boundaries tuple.
  _getBytesAvailable(self)
Property target available to get the bytes-available value.
  _getBytesUsed(self)
Property target used to get the bytes-used value.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Property Summary
  bytesUsed: Space used on disc, in bytes.
  bytesAvailable: Space available on disc, in bytes.
  boundaries: Session disc boundaries, in terms of ISO sectors.

Method Details

__init__(self, bytesUsed, bytesAvailable, boundaries)
(Constructor)

Initializes a capacity object.
Raises:
IndexError - If the boundaries tuple does not have enough elements.
ValueError - If the boundaries values are not integers.
ValueError - If the bytes used and available values are not floats.
Overrides:
__builtin__.object.__init__

_getBoundaries(self)

Property target available to get the boundaries tuple.

_getBytesAvailable(self)

Property target available to get the bytes-available value.

_getBytesUsed(self)

Property target used to get the bytes-used value.

Property Details

bytesUsed

Space used on disc, in bytes.
Get Method:
_getBytesUsed(self)

bytesAvailable

Space available on disc, in bytes.
Get Method:
_getBytesAvailable(self)

boundaries

Session disc boundaries, in terms of ISO sectors.
Get Method:
_getBoundaries(self)

Generated by Epydoc 2.1 on Thu Mar 29 20:58:29 2007 http://epydoc.sf.net