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

Type MediaDefinition

object --+
         |
        MediaDefinition


Class encapsulating information about media definitions.

The following media types are accepted: Note that all of the capacities associated with a media definition are in terms of ISO sectors (util.ISO_SECTOR_SIZE).
Method Summary
  __init__(self, mediaType)
Creates a media definition for the indicated 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.
  initialLeadIn: Initial lead-in required for first image written to media.
  leadIn: Lead-in required on successive images written to media.
  capacity: Total capacity of the media before any required lead-in.

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__

Property Details

mediaType

Configured media type.

rewritable

Boolean indicating whether the media is rewritable.

initialLeadIn

Initial lead-in required for first image written to media.

leadIn

Lead-in required on successive images written to media.

capacity

Total capacity of the media before any required lead-in.

Generated by Epydoc 2.1 on Mon Sep 4 13:49:32 2006 http://epydoc.sf.net