Package gavo :: Package helpers :: Module copying :: Class CDHandler
[frames] | no frames]

Class CDHandler

source code

object --+
         |
        CDHandler

A wrapper for mounting and ejecting CDs.

This assumes that you let users mount CDs, e.g. via a line like

/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

in /etc/fstab. In this example, devPath would be /dev/scd0 and mountPath /media/cdrom0.

Instance Methods
 
__init__(self, devPath, mountPath)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
ejectMedium(self)
ejects the current CD.
source code
 
mediumChanged(self)
returns True if there's a new medium available.
source code
 
mount(self) source code
 
unmount(self) source code
 
isMounted(self) source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, devPath, mountPath)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)