Class e.p.c.u.UpnpResource(ResourceProvider):

Part of elisa.plugins.coherence.upnp_resource View In Hierarchy

Resource provider responsible for UPnP MediaServer browsing, using the Coherence UPnP framework.

This resource_provider doesn't depend on the elisa.plugins.coherence.coherence_resource resource_provider but it's good to have both if the application needs both UPnP discovery and browsing of MediaServers.

Line # Kind Name Docs
60 Method initialize Initialize the component.
152 Method get Browse a MediaServer located on given UPnP device and
70 Method _get_playable_url Undocumented
79 Method _response_read Undocumented
84 Method _request_done Undocumented
97 Method _request_error Undocumented
100 Method _got_browse_results Undocumented

Inherited from ResourceProvider:

Line # Kind Name Docs
103 Method post Update the resource pointed by uri with parameters.
116 Method put Put one resource into another. Both resources are identified with URIs.
138 Method delete Delete a Resource represented by a URI.

Inherited from Component (via ResourceProvider):

Line # Kind Name Docs
85 Class PathDescriptor Undocumented
97 Class Method create Create and initialize the component.
142 Method clean Clean the component.

Inherited from Loggable (via ResourceProvider, Component):

Line # Kind Name Docs
81 Method __init__ Undocumented
def initialize(self):
Initialize the component.

This method is called by Component.create to finish the initialization of a component.

Returnsa deferred called when a component is fully initialized (type: twisted.internet.defer.Deferred )
def _get_playable_url(self, item):
Undocumented
def _response_read(self, response, model):
Undocumented
def _request_done(self, response, model):
Undocumented
def _request_error(self, err):
Undocumented
def _got_browse_results(self, results, uri, model):
Undocumented
def get(self, uri, context_model=None):
Browse a MediaServer located on given UPnP device and service. Device and service ids are specified in the URI like this:

upnp://device_uuid?sid=service_uuid#container_id

The container_id is optional. If not specified we assume it is equal to 0.

example URI:

:

  upnp://1ce86a92-8676-4336-bb6f-a08217aadaf2?sid=10f4322f-8b45-4f79-8659-6f66b59c6a38#1

Model returned is always a elisa.plugins.coherence.models.UpnpModel instance with items list containing various other elisa.plugins.coherence.models.UpnpContainerModel and/or elisa.plugins.coherence.models.UpnpItemModel depending on the container being browsed.

API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.