Class e.p.b.m.d.DeviceModel(Model):

Part of elisa.plugins.base.models.device View In Hierarchy

Known subclasses: elisa.plugins.base.models.device.VolumeModel, elisa.plugins.hal.hal.HALDeviceModel

A generic description of a device.

*Note*: A DeviceModel is considered the same, if the udi is the same.

Instance Variablesudithe unique id for that device (type: str )
protocolthe protocol to access this device (like dvd or cdda) (type: str )
devicestring to identify the device (on linux /dev/something) (type: str )
name(optional) human-recognisable name of the device (type: str )
Line # Kind Name Docs
55 Method __init__ Undocumented
62 Method __eq__ Undocumented
67 Method __ne__ Undocumented
70 Method eject Eject the device.

Inherited from Bindable (via Model):

Line # Kind Name Docs
34 Method bind Bind a local attribute to destination_attribute of
73 Method unbind Remove the binding of attribute to destination_attribute of
104 Method unbind_object Remove all the bindings you have for a certain destination_object.
118 Method __setattr__ Undocumented
136 Method __delattr__ Undocumented
def __init__(self, udi=None):
Undocumented
def __eq__(self, other):
Undocumented
def __ne__(self, other):
Undocumented
def eject(self):
Eject the device.

Return a deferred fired when ejection is complete.

Returns (type: elisa.core.utils.defer.Deferred )
API Documentation for Elisa Media Center, generated by pydoctor at 2009-03-02 18:56:05.