Class c.b.e.ElisaMediaStore(Plugin):

Part of coherence.backends.elisa_storage View Source View In Hierarchy

this is a backend to the Elisa Media DB

Elisa needs to expose two methods

get_root_id(media_type)
    if media_type == '*'
        this returns the root id of the media collection
    if media_type == 'audio'
        this returns the root id of the audio collection

get_item_by_id(id)
    this returns a dict with the following keys:
    id = id in the media db
    parent_id = parent_id in the media db
    name = title, album name or basename
    mimetype = 'directory' or real mimetype
    children = list of objects for which this item is the parent
    location = filesystem path if item is a file
    cover = url by which the cover image can be retrieved  (OPTIONAL)
    size = in bytes (OPTIONAL)
Line # Kind Name Docs
45 Method __init__ Undocumented
58 Method __repr__ Undocumented
61 Method get_store Undocumented
67 Method get_by_id Undocumented
73 Method set_root_id Undocumented
77 Method get_root_id ask Elisa to tell us the id of the top item
88 Method upnp_init Undocumented
94 Method upnp_Browse Undocumented
def __init__(self, server, **kwargs): (source)
Undocumented
def __repr__(self): (source)
Undocumented
def get_store(self): (source)
Undocumented
def get_by_id(self, id): (source)
Undocumented
def set_root_id(self, id): (source)
Undocumented
def get_root_id(self, media_type='audio'): (source)
ask Elisa to tell us the id of the top item representing the media_type == 'something' collection
def upnp_init(self): (source)
Undocumented
def upnp_Browse(self, *args, **kwargs): (source)
Undocumented
API Documentation for Coherence, generated by pydoctor at 2007-12-08 21:02:38.