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

Type MediaDefinition

object --+
         |
        MediaDefinition


Class encapsulating information about DVD media definitions.

The following media types are accepted:

Note that the capacity attribute returns capacity in terms of ISO sectors (util.ISO_SECTOR_SIZE). This is for compatibility with the CD writer functionality.

The capacities are 4.4 GB because Cedar Backup deals in "true" gigabytes of 1024*1024*1024 bytes per gigabyte.
Method Summary
  __init__(self, mediaType)
Creates a media definition for the indicated media type.
  _getCapacity(self)
Property target used to get the capacity value.
  _getMediaType(self)
Property target used to get the media type value.
  _getRewritable(self)
Property target used to get the rewritable flag value.
  _setValues(self, mediaType)
Sets values based on media type.
    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
  mediaType: Configured media type.
  rewritable: Boolean indicating whether the media is rewritable.
  capacity: Total capacity of media in 2048-byte sectors.

Method Details

__init__(self, mediaType)
(Constructor)

Creates a media definition for the indicated media type.
Parameters:
mediaType - Type of the media, as discussed above.
Raises:
ValueError - If the media type is unknown or unsupported.
Overrides:
__builtin__.object.__init__

_getCapacity(self)

Property target used to get the capacity value.

_getMediaType(self)

Property target used to get the media type value.

_getRewritable(self)

Property target used to get the rewritable flag value.

_setValues(self, mediaType)

Sets values based on media type.
Parameters:
mediaType - Type of the media, as discussed above.
Raises:
ValueError - If the media type is unknown or unsupported.

Property Details

mediaType

Configured media type.
Get Method:
_getMediaType(self)

rewritable

Boolean indicating whether the media is rewritable.
Get Method:
_getRewritable(self)

capacity

Total capacity of media in 2048-byte sectors.
Get Method:
_getCapacity(self)

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